diff --git a/seqs/ebackup.sh b/seqs/ebackup.sh index daf5937..65e55c9 100755 --- a/seqs/ebackup.sh +++ b/seqs/ebackup.sh @@ -176,7 +176,18 @@ step_7() { unsetPassphrase } -step_20_info() { echo "Status of [TARGET]"; } +step_20_info() { + shift + local ebuTarget=$EBU_TARGET + [ ! -z "$1" ] && ebuTarget="$1" + if [ $CONTEXT_HELP -ne 0 ]; then + echo "Status of (profile) [TARGET]" + elif [ ! -z "$1" ]; then + echo "Status of target: $ebuTarget" + else + echo "Status of profile \"$SEQ_PROFILE_NAME\" target: $ebuTarget" + fi +} step_20_alias() { ALIAS='status'; } step_20() { shift