summaryrefslogtreecommitdiffstats
path: root/Services/nodejs/run.sh
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-12-06 16:41:23 +0100
committerstartxfr <clarue@startx.fr>2015-12-06 16:41:23 +0100
commit7fe1c9cf9f114d40fe3f534a3902f3dff73c602f (patch)
tree5d40c66b09a9eddab90ee209a71aa37eaed787cf /Services/nodejs/run.sh
parent6fc395ce332cf2565705b3a36bceaaa6f3948417 (diff)
downloadphpmyadmin-7fe1c9cf9f114d40fe3f534a3902f3dff73c602f.tar.gz
phpmyadmin-7fe1c9cf9f114d40fe3f534a3902f3dff73c602f.tar.bz2
phpmyadmin-7fe1c9cf9f114d40fe3f534a3902f3dff73c602f.tar.xz
phpmyadmin-7fe1c9cf9f114d40fe3f534a3902f3dff73c602f.zip
correcting bug and improve startup display
Diffstat (limited to 'Services/nodejs/run.sh')
-rw-r--r--Services/nodejs/run.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/Services/nodejs/run.sh b/Services/nodejs/run.sh
index 1bd6a50..cc94229 100644
--- a/Services/nodejs/run.sh
+++ b/Services/nodejs/run.sh
@@ -42,13 +42,15 @@ function display_container_nodejs_header {
function begin_config {
echo "=> BEGIN NODEJS CONFIGURATION"
if [[ -d $TMP_APP_PATH ]]; then
- echo "COPY application from $TMP_APP_PATH into $APP_PATH"
- FILE_LIST=$(find $TMP_APP_PATH -maxdepth 1 -mindepth 1 -printf "%f\n")
- for FILE in $FILE_LIST; do
- echo -n "adding $APP_PATH/$FILE"
- cp -r $TMP_APP_PATH/$FILE $APP_PATH/
- echo " DONE"
- done
+ if [ "$(ls -A $TMP_APP_PATH)" ]; then
+ echo "COPY application from $TMP_APP_PATH into $APP_PATH"
+ FILE_LIST=$(find $TMP_APP_PATH -maxdepth 1 -mindepth 1 -printf "%f\n")
+ for FILE in $FILE_LIST; do
+ echo -n "adding $APP_PATH/$FILE"
+ cp -r $TMP_APP_PATH/$FILE $APP_PATH/
+ echo " DONE"
+ done
+ fi
fi
}