X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fsysstat.sh;fp=shell%2Fsysstat.sh;h=03cab6dc33d29db536bd941eac48b8e56348f13a;hb=6b8bc7c5fa00404831dbba4935a3af793beeadcd;hp=022374ad24cd06f448090bcb1df3d92abdfb4c89;hpb=129735b3b42874ae1de0d0708e28cde16b615e9e;p=releng%2Fglobal-jjb.git 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.