Add lf-infra-docker-login macro and script
[releng/global-jjb.git] / shell / sysstat.sh
index e4e28ff..03cab6d 100644 (file)
@@ -8,7 +8,7 @@
 # which accompanies this distribution, and is available at
 # http://www.eclipse.org/legal/epl-v10.html
 ##############################################################################
-echo "---> lftools-sysstat.sh"
+echo "---> sysstat.sh"
 set +e  # DON'T fail build if script fails.
 
 OS=$(facter operatingsystem)
@@ -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.