From a6e0390a8e0dc9e5a8e36d1619807586e06a5b5a Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Sat, 14 Jan 2017 07:26:19 -0600 Subject: [PATCH] bugfix: wrong parameter to cd --- scripts/test-pmbw | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/test-pmbw b/scripts/test-pmbw index a4f660c..32875fb 100755 --- a/scripts/test-pmbw +++ b/scripts/test-pmbw @@ -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