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
|
@ -93,8 +93,8 @@ if [ -e '/flarum/app/public/assets/installed.txt' ]; then
|
||||||
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