File tree Expand file tree Collapse file tree 13 files changed +26
-39
lines changed Expand file tree Collapse file tree 13 files changed +26
-39
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
Original file line number Diff line number Diff line change @@ -42,9 +42,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
42
42
43
43
if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then
44
44
echo >&2 " WordPress not found in $PWD - copying now..."
45
- if [ " $( ls -A) " ]; then
46
- echo >&2 " WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
47
- ( set -x; ls -A; sleep 10 )
45
+ if [ -n " $( ls -A) " ]; then
46
+ echo >&2 " WARNING: $PWD is not empty! (copying anyhow)"
48
47
fi
49
48
tar --create \
50
49
--file - \
You can’t perform that action at this time.
0 commit comments