u
This commit is contained in:
@@ -62,12 +62,13 @@ deploy_file() {
|
|||||||
_no_chown=$3
|
_no_chown=$3
|
||||||
_recursive=$4
|
_recursive=$4
|
||||||
|
|
||||||
file_name=$(basename ${_trg_path})
|
file_name_src=$(basename ${_src_path})
|
||||||
|
file_name_trg=$(basename ${_trg_path})
|
||||||
echo ""
|
echo ""
|
||||||
echo "${file_name}:"
|
echo "${file_name_trg}:"
|
||||||
|
|
||||||
suffix=".zip"
|
suffix=".zip"
|
||||||
if [[ ${file_name} == *$suffix ]] ; then
|
if [[ ${file_name_src} == *$suffix ]] ; then
|
||||||
unzip ${_src_path} -d ${_trg_path}
|
unzip ${_src_path} -d ${_trg_path}
|
||||||
else
|
else
|
||||||
# -f (--force): overwrite without confirmation
|
# -f (--force): overwrite without confirmation
|
||||||
@@ -95,9 +96,9 @@ deploy_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
suffix=".sh"
|
suffix=".sh"
|
||||||
if [[ ${file_name} == *$suffix ]] ; then
|
if [[ ${file_name_trg} == *$suffix ]] ; then
|
||||||
chmod 755 ${_trg_path}/*.sh
|
chmod 755 ${_trg_path}/*.sh
|
||||||
elif [[ ${file_name} == "bin" ]] ; then
|
elif [[ ${file_name_trg} == "bin" ]] ; then
|
||||||
chmod 755 ${_trg_path}/*
|
chmod 755 ${_trg_path}/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user