From f024b57bbf5c6b60141c392c8a8a2c7dbc83f59b Mon Sep 17 00:00:00 2001 From: Magicalex Date: Wed, 26 Dec 2018 22:54:01 +0100 Subject: [PATCH] fix(): execute command stored in a variable https://stackoverflow.com/questions/4668640/how-to-execute-command-stored-in-a-variable --- rootfs/usr/local/bin/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/bin/run.sh b/rootfs/usr/local/bin/run.sh index 6705e8c..2e30da1 100644 --- a/rootfs/usr/local/bin/run.sh +++ b/rootfs/usr/local/bin/run.sh @@ -91,10 +91,10 @@ if [ -e '/flarum/app/public/assets/installed.txt' ]; then if [ -s "${LIST_FILE}" ]; then echo "[INFO] Install extra bundled extensions" while read line; do - extension="${extension} ${line}" + extension="${extension}${line} " done < /flarum/app/extensions/list - composer="composer require ${extension}" - COMPOSER_CACHE_DIR="${CACHE_DIR}" "${composer}" + cmd="composer require ${extension}" + COMPOSER_CACHE_DIR="${CACHE_DIR}" eval $cmd echo "[INFO] Install extra bundled extensions: DONE." else echo "[INFO] No installed extensions"