Remove verbose logging

This commit is contained in:
2025-10-15 17:33:29 +01:00
parent b71ca508ea
commit 14b74e8ecd
6 changed files with 22 additions and 66 deletions

View File

@@ -10,7 +10,7 @@
# Options:
# <targethost> : Host to perform refresh job
usage() { log_error "Usage: $0 <host>"; exit 1; }
usage() { echo "Usage: $0 <host>" >&2; exit 1; }
if [[ -z "$1" ]]; then
usage
@@ -18,19 +18,7 @@ fi
MYDIR="$(dirname "$(realpath "$0")")"
# Support -v/--verbose and strip it from positional args
NEWARGS=()
for arg in "$@"; do
case "$arg" in
-v|--verbose)
VERBOSE=1
;;
*)
NEWARGS+=("$arg")
;;
esac
done
set -- "${NEWARGS[@]}"
# No verbose flag: log_info prints by default
source $MYDIR/rsc_ops.sh