Skip to content

Commit

Permalink
Dir check for bash benchmark.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
myaaghubi committed Mar 18, 2024
1 parent 5443968 commit 26f70cf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion base/hello_world.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ phpc=`curl -s "$base/libs/php_config.php"`
echo "/------- PHP Config -------/"
echo "$phpc"

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

for fw in `echo $param_targets`
do
echo "\n/------- $fw -------/"
if [ -d "$fw" ]; then
echo "\n/------- $fw -------/"

# read -p "Continue to $fw (y/n)?" choice
# case "$choice" in
Expand Down Expand Up @@ -75,6 +80,10 @@ do

# run the benchmark
benchmark "$fw" "$url"
else
# check for dir
echo "${RED}Dir $fw/ doesn't exist!${NC}"
FAIL=1
fi
done

Expand Down

0 comments on commit 26f70cf

Please sign in to comment.