File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -98,15 +98,18 @@ if [[ -n "$FILTER" ]]; then
9898 mkdir ${temp_dir} /${SRC_REPO_NAME}
9999 cd ${SRC_REPO_NAME}
100100 FINAL_SOURCE=" ${tmp_dir} /${SRC_REPO_NAME} /${SRC_PATH} "
101+ SAVEIFS=$IFS
102+ IFS=$( echo -en " \n\b" )
101103 for f in ${FILTER} ; do
102104 [ -e " $f " ] || continue
103105 [ -d " $f " ] && continue
104106 if [[ -n " $EXCLUDE " ]] ; then
105- [[ $f == $EXCLUDE ]] && continue
107+ [[ " $f " == $EXCLUDE ]] && continue
106108 fi
107109 file_dir=$( dirname " ${f} " )
108- mkdir -p ${tmp_dir} /${SRC_REPO_NAME} /${file_dir} && cp " ${f} " ${tmp_dir} /${SRC_REPO_NAME} /${file_dir}
110+ mkdir -p " ${tmp_dir} /${SRC_REPO_NAME} /${file_dir} " && cp " ${f} " " ${tmp_dir} /${SRC_REPO_NAME} /${file_dir} "
109111 done
112+ IFS=$SAVEIFS
110113 cd ..
111114fi
112115
127130
128131if [ " $CLEAN " = " true" ]; then
129132 if [ -f " ${DST_REPO_NAME} /${DST_PATH} " ] ; then
130- find ${DST_REPO_NAME} /${DST_PATH} -type f -not -path ' */\.git/*' -delete
133+ find " ${DST_REPO_NAME} /${DST_PATH} " -type f -not -path ' */\.git/*' -delete
131134 elif [ -d " ${DST_REPO_NAME} /${DST_PATH} " ] ; then
132- find ${DST_REPO_NAME} /${DST_PATH%/* } /* -type f -not -path ' */\.git/*' -delete
135+ find " ${DST_REPO_NAME} /${DST_PATH%/* } " /* -type f -not -path ' */\.git/*' -delete
133136 else
134137 echo >&2 " Nothing to clean 🧽"
135138 fi
136139fi
137140
138- mkdir -p ${DST_REPO_NAME} /${DST_PATH%/* } || exit " $? "
139- cp -rf ${FINAL_SOURCE} ${DST_REPO_NAME} /${DST_PATH} || exit " $? "
141+ mkdir -p " ${DST_REPO_NAME} /${DST_PATH%/* } " || exit " $? "
142+ cp -rf " ${FINAL_SOURCE} " " ${DST_REPO_NAME} /${DST_PATH} " || exit " $? "
140143cd ${DST_REPO_NAME} || exit " $? "
141144
142145if [[ -z " ${COMMIT_MESSAGE} " ]]; then
You can’t perform that action at this time.
0 commit comments