Skip to content

Commit

Permalink
fix: address bug preventing url-form plugins/themes from installing
Browse files Browse the repository at this point in the history
closes #176
  • Loading branch information
dsifford committed Feb 13, 2020
1 parent 6a89c7d commit a6f1316
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

## 0.25.3 - latest
## 0.25.4 - latest

### Patch

- Fix bug that prevented url form of plugins/themes to fail due to nullglob interacting with the parsing. #176

## 0.25.3

### Patch

Expand Down
9 changes: 6 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
shopt -s nullglob

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

check_database() {
# this is ran in a subshell to isolate nullglob as it for whatever reason
# interacts with our $PLUGINS and $THEMES variables.
# See: https://github.com/visiblevc/wordpress-starter/issues/176
check_database() (
shopt -s nullglob
declare file
declare -i num_imported=0

Expand Down Expand Up @@ -209,7 +212,7 @@ check_database() {
h2 'Updating database...'
wp core update-db |& logger
fi
}
)

check_plugins() {
declare key
Expand Down

0 comments on commit a6f1316

Please sign in to comment.