Skip to content

Commit

Permalink
Fix "The current directory is not empty" message appearing on new ins…
Browse files Browse the repository at this point in the history
…tall (#1140)

Co-authored-by: Michael Lehmkuhl <[email protected]>
Co-authored-by: Jenyamba <[email protected]>
Co-authored-by: Tu Van <[email protected]>
Co-authored-by: Cid Lopes <[email protected]>
  • Loading branch information
5 people authored Apr 25, 2024
1 parent 4d0801d commit b6b46f5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [47.0.1] - 2024-04-25

### Fixed
- "The current directory is not empty" message appearing on new install [PR #1141](https://github.com/markshust/docker-magento/pull/1141).

## [47.0.0] - 2024-04-25

### Added
Expand Down
4 changes: 2 additions & 2 deletions compose/bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ NC='\033[0m' # No Color

bin/stop

if [ -d "./bin" ]; then
echo "Error: The current directory is not empty. Please remove all contents within this directory and try again."
if [ -d "./src" ]; then
echo "Error: The \"src\" directory is not empty. Please remove all contents within this directory and try again."
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion compose/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Mark Shust's Docker Configuration for Magento
## (https://github.com/markshust/docker-magento)
##
## Version 47.0.0
## Version 47.0.1

## To use SSH, see https://github.com/markshust/docker-magento#ssh
## Linux users, see https://github.com/markshust/docker-magento#linux
Expand Down
5 changes: 5 additions & 0 deletions lib/onelinesetup
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ DOMAIN=${1:-magento.test}
VERSION=${2:-2.4.7}
EDITION=${3:-community}

if [ -d "./bin" ]; then
echo "Error: The current directory is not empty. Please remove all contents within this directory and try again."
exit 1
fi

curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash

# &&'s are used below otherwise onelinesetup script fails/errors after bin/download
Expand Down

0 comments on commit b6b46f5

Please sign in to comment.