Skip to content

Commit

Permalink
Adds a check to ensure that the directory does not already exist in t…
Browse files Browse the repository at this point in the history
…he project directory
  • Loading branch information
YevhenZvieriev committed Apr 17, 2024
1 parent ac27c40 commit e64cebf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compose/bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ NC='\033[0m' # No Color

bin/stop

if [ -d "./bin" ]; then
echo "Error: The 'bin' directory already exists in the project directory."
exit 1
fi

bin/start --no-dev
[ $? != 0 ] && echo "Failed to start Docker services" && exit

Expand Down

0 comments on commit e64cebf

Please sign in to comment.