diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index 143cdd9..2b055e5 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -62,12 +62,13 @@ deploy_file() { _no_chown=$3 _recursive=$4 - file_name=$(basename ${_trg_path}) + file_name_src=$(basename ${_src_path}) + file_name_trg=$(basename ${_trg_path}) echo "" - echo "${file_name}:" + echo "${file_name_trg}:" suffix=".zip" - if [[ ${file_name} == *$suffix ]] ; then + if [[ ${file_name_src} == *$suffix ]] ; then unzip ${_src_path} -d ${_trg_path} else # -f (--force): overwrite without confirmation @@ -95,9 +96,9 @@ deploy_file() { fi suffix=".sh" - if [[ ${file_name} == *$suffix ]] ; then + if [[ ${file_name_trg} == *$suffix ]] ; then chmod 755 ${_trg_path}/*.sh - elif [[ ${file_name} == "bin" ]] ; then + elif [[ ${file_name_trg} == "bin" ]] ; then chmod 755 ${_trg_path}/* fi