Fix shell scripts. (#1179)
There were various mistakes in the shell scripts, such as lack of quoting; they would break them immediately e.g. if `BIN_DIR` contained a space. Pointed out by `shellcheck`.pull/1200/head
parent
fef5337a64
commit
2d413129a7
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Create an admin user
|
||||
|
||||
BIN_DIR=`dirname "$0"`
|
||||
BIN_DIR=$(dirname "$0")
|
||||
|
||||
${BIN_DIR}/bin/plausible eval Plausible.Release.init_admin
|
||||
"${BIN_DIR}"/bin/plausible eval Plausible.Release.init_admin
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
# starts the db migration
|
||||
|
||||
BIN_DIR=`dirname "$0"`
|
||||
BIN_DIR=$(dirname "$0")
|
||||
|
||||
${BIN_DIR}/bin/plausible eval Plausible.Release.migrate
|
||||
"${BIN_DIR}"/bin/plausible eval Plausible.Release.migrate
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
BIN_DIR=`dirname "$0"`
|
||||
BIN_DIR=$(dirname "$0")
|
||||
|
||||
${BIN_DIR}/bin/plausible eval Plausible.Release.rollback
|
||||
"${BIN_DIR}"/bin/plausible eval Plausible.Release.rollback
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
BIN_DIR=`dirname "$0"`
|
||||
BIN_DIR=$(dirname "$0")
|
||||
|
||||
${BIN_DIR}/bin/plausible eval Plausible.Release.seed
|
||||
"${BIN_DIR}"/bin/plausible eval Plausible.Release.seed
|
||||
|
||||
Loading…
Reference in New Issue