Skip to content

Commit

Permalink
Dir check for clean.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
myaaghubi committed Mar 18, 2024
1 parent 7890182 commit 0a9ab7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
. ./config
. ./base/option_target.sh

# Colors
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color

shopt -s extglob

for fw in $param_targets
Expand All @@ -12,5 +17,9 @@ do
cd "$fw"
. "_benchmark/clean.sh"
cd ..
else
# check for dir
echo -e "${RED}Dir $fw/ doesn't exist!"
FAIL=1
fi
done

0 comments on commit 0a9ab7e

Please sign in to comment.