projects
/
backups
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of home:dvl/backup
[backups/.git]
/
scripts
/
restore-header.sh
diff --git
a/scripts/restore-header.sh
b/scripts/restore-header.sh
index ae67b1cb74ecf6e93a3fe7977442871b38a00937..a147c62e6a0b397dd704ecb533750342d05395a4 100755
(executable)
--- a/
scripts/restore-header.sh
+++ b/
scripts/restore-header.sh
@@
-1,14
+1,12
@@
#!/bin/sh
export rundir=/tmp/restore-$(date +%Y%m%d%H%M%S)
if ! mkdir $rundir; then
#!/bin/sh
export rundir=/tmp/restore-$(date +%Y%m%d%H%M%S)
if ! mkdir $rundir; then
- echo
2>
"Cannot create temp dir"
+ echo
>&2
"Cannot create temp dir"
exit 1
fi
exit 1
fi
-echo $rundir
unset CDPATH
export mountdir=$(cd $(dirname $0) && pwd)
unset CDPATH
export mountdir=$(cd $(dirname $0) && pwd)
-echo $mountdir
SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0`
SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0`