X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=scripts%2Frestore-header.sh;h=b05d19c38314e2c73adf6fe6dd00749c0f9bc427;hb=9c5abcc59e83fa16bfeb810cc4d51960f8586a4e;hp=8374076c69134d8cf085f70f14ea56af919b1b05;hpb=4d43b38a139fcc3ef784f7fe3cab00019f679b54;p=backups%2F.git diff --git a/scripts/restore-header.sh b/scripts/restore-header.sh index 8374076..b05d19c 100755 --- a/scripts/restore-header.sh +++ b/scripts/restore-header.sh @@ -8,7 +8,9 @@ if ! mkdir $rundir; then fi unset CDPATH -export mountdir=$(cd $(dirname $0) && pwd) +if [ -z "$3" ]; then + export mountdir=$(cd $(dirname $0) && pwd -P) +fi SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0`