Master in licard-dev #10

Merged
bogdan.terehov merged 323 commits from merge_master_in_licard_dev into licard-dev 2023-09-04 19:22:24 +03:00
1 changed files with 8 additions and 3 deletions
Showing only changes of commit f0bbbb9929 - Show all commits

View File

@ -46,10 +46,15 @@ done
find . -name ".git*" -print0 | xargs -0 rm -rf
zip -r -q ${SRC_FOLDER_NAME}.zip .
if find . -name "*[<>:\\|?*]*" | xargs -I %s echo "in path %s" | xargs -0 echo "Invalid characters [<>:\|?*]" | grep .
IFS="\n"
ERR_PATH_ARR=($(find . -name "*[<>:\\|?*]*" | xargs -I %s echo "- %s"))
unset IFS
if [ ${#ERR_PATH_ARR[@]} != 0 ]
then
echo "Abort the script"
exit
echo "Export aborted! Invalid characters found in file or directories name(s):"
printf "%s\n" "${ERR_PATH_ARR[@]}"
exit
fi
open .