fix(): execute command stored in a variable
https://stackoverflow.com/questions/4668640/how-to-execute-command-stored-in-a-variablepull/43/head
parent
b0cdf212fc
commit
f024b57bbf
|
@ -91,10 +91,10 @@ if [ -e '/flarum/app/public/assets/installed.txt' ]; then
|
||||||
if [ -s "${LIST_FILE}" ]; then
|
if [ -s "${LIST_FILE}" ]; then
|
||||||
echo "[INFO] Install extra bundled extensions"
|
echo "[INFO] Install extra bundled extensions"
|
||||||
while read line; do
|
while read line; do
|
||||||
extension="${extension} ${line}"
|
extension="${extension}${line} "
|
||||||
done < /flarum/app/extensions/list
|
done < /flarum/app/extensions/list
|
||||||
composer="composer require ${extension}"
|
cmd="composer require ${extension}"
|
||||||
COMPOSER_CACHE_DIR="${CACHE_DIR}" "${composer}"
|
COMPOSER_CACHE_DIR="${CACHE_DIR}" eval $cmd
|
||||||
echo "[INFO] Install extra bundled extensions: DONE."
|
echo "[INFO] Install extra bundled extensions: DONE."
|
||||||
else
|
else
|
||||||
echo "[INFO] No installed extensions"
|
echo "[INFO] No installed extensions"
|
||||||
|
|
Loading…
Reference in New Issue