From 446209a401eeef97eb5c4a9a79a6d5c4aab5df55 Mon Sep 17 00:00:00 2001 From: Carl N Baldwin Date: Tue, 29 Nov 2005 20:03:05 -0700 Subject: [PATCH] I think we can safely give rundir a default value. --- scripts/restore-script.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.34.1