bugfix: wrong parameter to cd

This commit is contained in:
Sandino Araico Sanchez 2017-01-14 07:26:19 -06:00
parent e76f286c1a
commit a6e0390a8e

View file

@ -4,7 +4,7 @@ source scan-dmidecode
source test-variables
mkdir -pv $OUTPUT_DIR/pmbw
cd -v $OUTPUT_DIR/pmbw
cd $OUTPUT_DIR/pmbw
MY_DATE=`date +%Y-%m-%d_%H-%M-%S`
if [[ -f stats.txt ]] ; then
mv -vf stats.txt stats.txt.old-$MY_DATE
@ -20,7 +20,9 @@ RES=$?
ERRNO=$!
if [[ $RES != '0' ]] ; then
echo "${RED}FAIL${OFF} pmbw exited abnormally with error code: $BLD$ERRNO$OFF";
echo "${RES_FAIL} pmbw exited abnormally with error code: $BLD$ERRNO$OFF";
else
echo "${RES_OK} pmbw finished successfully. Results in stats.txt"
fi