This commit is contained in:
committer
2024-05-15 17:10:45 -05:00
parent 83b6f36e3c
commit 649e3e60b6

View File

@@ -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