bugfix: wrong parameter to cd
This commit is contained in:
parent
e76f286c1a
commit
a6e0390a8e
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue