Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update merge job to work with common-packer
[releng/global-jjb.git]
/
shell
/
sysstat.sh
diff --git
a/shell/sysstat.sh
b/shell/sysstat.sh
index
66c18f8
..
6ecab67
100644
(file)
--- a/
shell/sysstat.sh
+++ b/
shell/sysstat.sh
@@
-34,9
+34,9
@@
SAR_DIR="$WORKSPACE/archives/sar-reports"
mkdir -p "$SAR_DIR"
cp "$SYSSTAT_PATH/"* "$_"
# convert sar data to ascii format
mkdir -p "$SAR_DIR"
cp "$SYSSTAT_PATH/"* "$_"
# convert sar data to ascii format
-while IFS="" read -r s
+while IFS="" read -r s
arfilenum
do
do
- [ -f "$s
" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s
//[!0-9]/}"
+ [ -f "$s
arfilenum" ] && LC_TIME=POSIX sar -A -f "$sarfilenum" > "$SAR_DIR/sar${sarfilenum
//[!0-9]/}"
done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
# DON'T fail build if script fails.
done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
# DON'T fail build if script fails.