aboutsummaryrefslogtreecommitdiff
path: root/restore.in
diff options
context:
space:
mode:
Diffstat (limited to 'restore.in')
-rw-r--r--restore.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/restore.in b/restore.in
index 74d63b0..ac1000b 100644
--- a/restore.in
+++ b/restore.in
@@ -104,6 +104,7 @@ if [ -z "$round" ]; then
sed 's/.*-'$week'-\([0-9][0-9]*\)-[0-9][0-9]*\..*/\1/' |
sort +0 -1 |
tail -1)
+ test -z "$round" && abend 1 "cannot determine last round number"
fi
if [ -z "$level" ]; then
@@ -113,6 +114,7 @@ if [ -z "$level" ]; then
sed 's/.*-'$week-$round'-\([0-9][0-9]*\)\..*/\1/' |
sort +0 -1 |
tail -1)
+ test -z "$level" && abend 1 "cannot determine last level number"
fi
echo "$0: target root directory $root"

Return to:

Send suggestions and report system problems to the System administrator.