From 6b8bc7c5fa00404831dbba4935a3af793beeadcd Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Tue, 13 Jun 2017 13:03:32 +1000 Subject: [PATCH] Fix shellcheck errors SC2086 SC2086: Double quote to prevent globbing and word splitting. Change-Id: Ib9fd89a72d3c3f4788f9b1c02a882ace0250bd09 Signed-off-by: Anil Belur --- shell/sysstat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/sysstat.sh b/shell/sysstat.sh index 022374ad..03cab6dc 100644 --- a/shell/sysstat.sh +++ b/shell/sysstat.sh @@ -27,11 +27,11 @@ esac SAR_DIR="$WORKSPACE/archives/sar-reports" mkdir -p "$SAR_DIR" -cp "$SYSSTAT_PATH/"* $_ +cp "$SYSSTAT_PATH/"* "$_" # convert sar data to ascii format while IFS="" read -r s do - [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/"sar${s//[!0-9]/} + [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}" done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true) # DON'T fail build if script fails. -- 2.16.6