Skip to content

Commit

Permalink
Dir check for update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
myaaghubi committed Mar 18, 2024
1 parent b1425eb commit a4b974d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@ 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
echo "/------- $fw: updating -------/"
if [ -d "$fw" ]; then
echo "/------- $fw: updating -------/"
cd "$fw"
. "_benchmark/update.sh"
cd ..
else
# check for dir
echo -e "${RED}❌ Dir $fw ${NC} doesn't exist"
FAIL=1
fi
done

0 comments on commit a4b974d

Please sign in to comment.