modernize multiple seqs and fix deprecated use of endCheckEmpty
This commit is contained in:
@@ -27,16 +27,15 @@ seq_config() {
|
||||
step_1_info() {
|
||||
echo -n "Backup "
|
||||
if contextHelp ; then
|
||||
echo -n "selected profile"
|
||||
echo "selected profile"
|
||||
else
|
||||
echo -n "profile: $seq_profileName"
|
||||
echo "profile: $seq_profileName"
|
||||
fi
|
||||
echo " [OPTIONS] [full|incremental]"
|
||||
echoinfo " [OPTIONS]"
|
||||
echoinfo " --no-purge, -n : Do not purge old backups after backup"
|
||||
echoinfo " --allow-source-mismatch, -a : see ${toolName:-} help"
|
||||
|
||||
}
|
||||
step_1_options() { echo '[OPTIONS] [full|incremental]'; }
|
||||
step_1_alias() { echo "backup"; }
|
||||
step_1() {
|
||||
shift
|
||||
@@ -109,12 +108,13 @@ step_3() {
|
||||
}
|
||||
|
||||
step_5_info() {
|
||||
echo "Restore [OPTIONS] <LOCAL TARGET> [TARGET]"
|
||||
echo "Restore files from backup"
|
||||
echoinfo " [OPTIONS]"
|
||||
echoinfo " --file-to-restore, -f <RELPATH> : Relative path within backup"
|
||||
echoinfo " (file or folder)"
|
||||
echoinfo " --time, -t <TIME> : Age of file to be restored"
|
||||
}
|
||||
step_5_options() { echo '[OPTIONS] <LOCAL TARGET> [TARGET]'; }
|
||||
step_5_alias() { echo "restore"; }
|
||||
step_5() {
|
||||
shift
|
||||
@@ -153,7 +153,8 @@ step_5() {
|
||||
unsetPassphrase
|
||||
}
|
||||
|
||||
step_7_info() { echo "Purge old backups [TARGET]"; }
|
||||
step_7_info() { echo "Purge old backups"; }
|
||||
step_7_options() { echo '[TARGET]'; }
|
||||
step_7_alias() { echo "purge"; }
|
||||
step_7() {
|
||||
shift
|
||||
@@ -185,13 +186,14 @@ step_20_info() {
|
||||
local ebuTarget="${EBU_TARGET:-}"
|
||||
[ ! -z "${1:-}" ] && ebuTarget="$1"
|
||||
if contextHelp; then
|
||||
echo "Status of (profile) [TARGET]"
|
||||
echo "Status of (profile)"
|
||||
elif [ -n "${1:-}" ]; then
|
||||
echo "Status of target: $ebuTarget"
|
||||
else
|
||||
echo "Status of profile \"$seq_profileName\" target: $ebuTarget"
|
||||
fi
|
||||
}
|
||||
step_20_options() { echo '[TARGET]'; }
|
||||
step_20_alias() { echo 'status'; }
|
||||
step_20() {
|
||||
shift
|
||||
@@ -202,7 +204,8 @@ step_20() {
|
||||
exe $toolBin collection-status "$ebuTarget"
|
||||
}
|
||||
|
||||
step_22_info() { echo "List backup files [TARGET]"; }
|
||||
step_22_info() { echo "List backup files"; }
|
||||
step_22_options() { echo '[TARGET]'; }
|
||||
step_22_alias() { echo 'list'; }
|
||||
step_22() {
|
||||
shift
|
||||
@@ -230,6 +233,7 @@ step_70_info() {
|
||||
echoinfo " --remove, -r : remove cron file"
|
||||
}
|
||||
step_70_alias() { echo 'cron'; }
|
||||
step_70_options() { echo '[OPTIONS]'; }
|
||||
step_70() {
|
||||
shift
|
||||
local arg
|
||||
|
Reference in New Issue
Block a user