From 1d4a884195e581249cb36c8083908d4010e7be1b Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 14 Feb 2026 01:29:40 +0100 Subject: [PATCH] Fix ssh command by removing -f flag and add shellcheck disable comment --- bin/netupgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/netupgrade b/bin/netupgrade index d050f4a..70de016 100755 --- a/bin/netupgrade +++ b/bin/netupgrade @@ -192,7 +192,8 @@ runCmd() { #$1=host $2=name #3=cmd ;; cmd) echo "cmd: ${CMDVAL}" | tee -a "${LOGFILENAME}" - if ! ssh root@"${HOST}" "${CMDVAL}" -f | tee -a "${LOGFILENAME}"; then + # shellcheck disable=SC2029 + if ! ssh root@"${HOST}" "${CMDVAL}" | tee -a "${LOGFILENAME}"; then ERROR=1 fi ;;