Skip to content

Commit

Permalink
Dir check for clear-cache.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
myaaghubi committed Mar 18, 2024
1 parent a4b974d commit 7890182
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions clear-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ fi
. ./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 @@ -18,5 +23,9 @@ do
cd "$fw"
. "_benchmark/clear-cache.sh"
cd ..
else
# check for dir
echo -e "${RED}Dir $fw/ doesn't exist!"
FAIL=1
fi
done

0 comments on commit 7890182

Please sign in to comment.