From cb9b250527db3f6d484b374f3eabe728e5fea26b Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sun, 19 Jul 2026 14:58:29 +0100 Subject: [PATCH] Correct INFO output for multiple args. --- sbosrcarch-wrapper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbosrcarch-wrapper b/sbosrcarch-wrapper index a168d7d..ea52ffa 100755 --- a/sbosrcarch-wrapper +++ b/sbosrcarch-wrapper @@ -85,8 +85,8 @@ else printf "%s: %s\\n" "INFO" "No ownership/permission issues found" | tee -a "$LOGSDIR/$LOGFILE" # Do the sbosrcarch work. umask 022 - printf "%s: %s: %s\\n" "INFO" "Beginning sbosrcarch run" "sg \"$DEPOSITORY_GROUP\" -c \"$COMMAND ${1:-update}\"" | tee -a "$LOGSDIR/$LOGFILE" - TMP_OUTPUT="$(sg "$DEPOSITORY_GROUP" -c "$COMMAND ${1:-update} 2>&1")" + printf "%s: %s: %s\\n" "INFO" "Beginning sbosrcarch run" "sg \"$DEPOSITORY_GROUP\" -c \"$COMMAND ${1:-update}${2:+ $2}${3:+ $3}\"" | tee -a "$LOGSDIR/$LOGFILE" + TMP_OUTPUT="$(sg "$DEPOSITORY_GROUP" -c "$COMMAND ${1:-update}${2:+ $2}${3:+ $3} 2>&1")" ERR="$?" sg "$DEPOSITORY_GROUP" -c "$COMMAND status 2>&1" | tee -a "$LOGSDIR/$LOGFILE" printf "\\n%s\\n" "$TMP_OUTPUT" | tee -a "$LOGSDIR/$LOGFILE"