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 12136d6 commit aa87806
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ git init -qqq
git remote add origin https://github.com/markshust/docker-magento
git fetch origin -qqq
git checkout origin/master -- compose

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

mv compose/* ./
mv compose/.gitignore ./
mv compose/.vscode ./
Expand Down

0 comments on commit aa87806

Please sign in to comment.