devops: fix clean script to keep going if there's no OBJ- folder

This commit is contained in:
Andrey Lushnikov 2019-11-22 19:57:25 -08:00
parent d092c63301
commit 254a464828

View file

@ -6,7 +6,7 @@ trap "cd $(pwd -P)" EXIT
cd "$(dirname $0)"
cd "checkout"
OBJ_FOLDER=$(ls -1 | grep obj-)
OBJ_FOLDER=$(ls -1 | grep obj- || true)
if [[ -d $OBJ_FOLDER ]]; then
rm -rf $OBJ_FOLDER
fi