X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=scripts%2Frestore-header.sh;h=b05d19c38314e2c73adf6fe6dd00749c0f9bc427;hb=c4767775f2f8882bdc28ecc6fc0e9d0c553577dd;hp=8374076c69134d8cf085f70f14ea56af919b1b05;hpb=a74a89d79bb29b97ac1b6710e1f52a832793e6ff;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`