projects
/
backups
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
585cc30
)
I think we can safely give rundir a default value.
author
Carl N Baldwin
<cnb@plane.localdomain>
Wed, 30 Nov 2005 03:03:05 +0000
(20:03 -0700)
committer
Carl N Baldwin
<cnb@plane.localdomain>
Wed, 30 Nov 2005 03:03:05 +0000
(20:03 -0700)
scripts/restore-script.sh
patch
|
blob
|
history
diff --git
a/scripts/restore-script.sh
b/scripts/restore-script.sh
index c95b8400fbc9496f57f9b8c34dc6a852a7acf201..e4fba472fb79803735f4032fc5b131c631e02c01 100755
(executable)
--- a/
scripts/restore-script.sh
+++ b/
scripts/restore-script.sh
@@
-8,7
+8,8
@@
function err() {
[ -n "$3" ] && mountdir=$3
[ -z "$mountdir" ] && err '$mountdir must be set'
-[ -z "$rundir" ] && err '$rundir must be set'
+
+rundir=${rundir:-$(dirname $0)}
export PATH=${rundir%/}:/bin:/usr/bin:/sbin:/usr/sbin:/sw/bin