Skip to content

Commit d1311f4

Browse files
authored
Merge pull request #1034 from YevhenZvieriev/feature/failed-install
2 parents 190b499 + 51f8bf0 commit d1311f4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

compose/bin/download

+10-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
VERSION=${1:-2.4.6-p3}
44
EDITION=${2:-community}
55

6+
# Define ANSI escape codes for colors
7+
YELLOW='\033[0;33m'
8+
BLUE='\033[0;34m'
9+
NC='\033[0m' # No Color
10+
611
bin/stop
712

813
bin/start --no-dev
@@ -24,5 +29,8 @@ else
2429
bin/clinotty composer create-project --repository=https://repo.magento.com/ magento/project-"${EDITION}"-edition="${VERSION}" .
2530
fi
2631

27-
bin/clinotty [ ! -f "./var/composer_home/auth.json" ] && bin/clinotty mkdir -p ./var/composer_home && bin/clinotty cp /var/www/.composer/auth.json ./var/composer_home/auth.json
28-
32+
if [ $? != 0 ]; then
33+
echo -e "${BLUE}Please check the installation guide at ${YELLOW}https://github.com/markshust/docker-magento#install-fails-because-project-directory-is-not-empty${BLUE} for troubleshooting.${NC}"
34+
else
35+
bin/clinotty [ ! -f "./var/composer_home/auth.json" ] && bin/clinotty mkdir -p ./var/composer_home && bin/clinotty cp /var/www/.composer/auth.json ./var/composer_home/auth.json
36+
fi

0 commit comments

Comments
 (0)