From: Carl N Baldwin Date: Wed, 30 Nov 2005 03:03:05 +0000 (-0700) Subject: I think we can safely give rundir a default value. X-Git-Tag: release-0.4~3 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/images/%7Bedit%7D?a=commitdiff_plain;h=446209a401eeef97eb5c4a9a79a6d5c4aab5df55;p=backups%2F.git I think we can safely give rundir a default value. --- diff --git a/scripts/restore-script.sh b/scripts/restore-script.sh index c95b840..e4fba47 100755 --- 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