aboutsummaryrefslogtreecommitdiff
path: root/restore.in
diff options
context:
space:
mode:
Diffstat (limited to 'restore.in')
-rw-r--r--restore.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/restore.in b/restore.in
index ac1000b..7466a4f 100644
--- a/restore.in
+++ b/restore.in
@@ -43,6 +43,8 @@ OPTIONS:
-h, --help produce this help list
Valid ITEMs are: $backup_items
+
+Report bugs to <@PACKAGE_BUGREPORT@>
EOT
exit 0
}
@@ -57,6 +59,7 @@ do
-l|--logfile) shift; logfile=$1; confirm=0;;
-n|--dry-run) dry_run=echo;;
-h|--help) help;;
+ -V|--version) print_version;;
-L|--level) shift; level=$1;;
-R|--round) shift; round=$1;;
-W|--week) shift; week=$1;;
@@ -84,8 +87,8 @@ if [ -n "$logfile" ]; then
exec 2>&1
fi
-$prologue_hook
-test -z "$epilogue_hook" && trap "$epilogue_hook" EXIT INT QUIT TERM
+runhook prologue_hook
+trap "runhook epilogue_hook" EXIT INT QUIT TERM
# Guess missing values
if [ -z "$week" ]; then
@@ -134,8 +137,8 @@ do
${type}_restore $item
done
-$epilogue_hook
trap '' EXIT INT QUIT TERM
+runhook epilogue_hook
logit "finished"

Return to:

Send suggestions and report system problems to the System administrator.