Skip to content

Commit

Permalink
fix: set nullglob so build handles cases where there are no volumes i…
Browse files Browse the repository at this point in the history
…n /data
  • Loading branch information
dsifford committed Jan 29, 2020
1 parent d2005df commit 10297a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# shellcheck disable=SC1091
shopt -s nullglob

if ! sudo mount -a 2> /dev/null; then
printf '\e[1;31mERROR:\e[0m %s' \
Expand Down Expand Up @@ -160,7 +160,7 @@ init() {
done

# If no theme dependencies or volumes exist, fall back to default
if [[ (${#theme_deps[@]} == 0 && ! -d /app/wp-content/themes) ]]; then
if [[ ${#theme_deps[@]} == 0 && ! -d /app/wp-content/themes ]]; then
theme_deps["$default_theme"]="$default_theme"
fi

Expand Down

0 comments on commit 10297a7

Please sign in to comment.