X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;ds=sidebyside;f=scripts%2Frestore-header.sh;h=2c17e854c33f2fdedbe6456d3102b1faa35a9eb4;hb=9acb0d35f2baaaf165a0f4e2348e2b99f4ee950f;hp=a147c62e6a0b397dd704ecb533750342d05395a4;hpb=6bf84dfd36b859d1bb2cf43f2fc998eee3fd65cc;p=backups%2F.git diff --git a/scripts/restore-header.sh b/scripts/restore-header.sh index a147c62..2c17e85 100755 --- a/scripts/restore-header.sh +++ b/scripts/restore-header.sh @@ -13,6 +13,7 @@ SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0` # take the archive portion of this file and pipe it to tar tail +$SKIP $0 | tar xzf - -C $rundir -exec $rundir/restore-script.sh ${1+"$@"} +cd $rundir +exec ./restore-script.sh ${1+"$@"} __ARCHIVE_FOLLOWS__