projects
/
backups
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf84df
)
restore.sh should get out of the mounted directory if it is in there
author
Carl Baldwin
<cnb@ball.(none)>
Tue, 25 Oct 2005 22:34:31 +0000
(16:34 -0600)
committer
Carl Baldwin
<cnb@ball.(none)>
Tue, 25 Oct 2005 22:34:31 +0000
(16:34 -0600)
scripts/restore-header.sh
patch
|
blob
|
history
diff --git
a/scripts/restore-header.sh
b/scripts/restore-header.sh
index a147c62e6a0b397dd704ecb533750342d05395a4..2c17e854c33f2fdedbe6456d3102b1faa35a9eb4 100755
(executable)
--- 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__