create-sbu_du-report.sh: check that J_VALUE is never empty
This commit is contained in:
parent
2e35653630
commit
0f3b1c317c
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@ if [ $(sed -n '/REALSBU/s/.*\([yn]\).*/\1/p' "$REPORT") = y ]; then
|
|||
else
|
||||
J_VALUE=$(sed -n '/N_PARALLEL/s/.*<\([^>]*\).*/\1/p' "$REPORT")
|
||||
fi
|
||||
# if jhalfs.config does not exist, or OPTIMIZE is 0, then J_VALUE is
|
||||
# still empty. Assume 1 in that case
|
||||
if [ -z "$J_VALUE" ]; then J_VALUE=1; fi
|
||||
echo -e "\nThe SBU unit value is equal to $SBU_UNIT seconds at -j$J_VALUE.\n"
|
||||
echo -e "\n\n$LINE\n\nThe SBU unit value is equal to $SBU_UNIT seconds at -j$J_VALUE.\n" >> "$REPORT"
|
||||
|
||||
|
|
Reference in a new issue