summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtranscode.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/transcode.sh b/transcode.sh
index ae53b5f..749668c 100755
--- a/transcode.sh
+++ b/transcode.sh
@@ -165,6 +165,14 @@ msg() {
fi
}
+warn() {
+ if [[ $QUIET -eq 0 ]]; then
+ local mesg="$1"
+ shift
+ printf "${BOLD}${YELLOW}==>${ALL_OFF} ${BOLD}%s${ALL_OFF} %s\n" "$mesg" "$@"
+ fi
+}
+
verbose() {
if [[ $VERBOSE -eq 1 && $QUIET -eq 0 ]]; then
local mesg="$1"
@@ -580,7 +588,7 @@ if [[ $SAVING -eq 1 ]]; then
fi
if [[ $SAVING_FILE_EXPLICIT -eq 1 && $SAVING -eq 0 ]]; then
- error "--saving-file has no effect without --saving"
+ warn "--saving-file has no effect without --saving"
fi
if [[ ! "$NICE_VALUE" =~ ^-?[0-9]+$ ]] || ((NICE_VALUE < -20 || NICE_VALUE > 19)); then