Skip to content

Commit

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

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

for fw in $param_targets
do
if [ -d "$fw" ]; then
Expand All @@ -33,6 +38,10 @@ do
cd "$fw"
. "_benchmark/setup.sh"
cd ..
else
# check for dir
echo -e "${RED}Dir $fw/ doesn't exist!"
FAIL=1
fi
done

Expand Down

0 comments on commit 5443968

Please sign in to comment.