Massively improves explode-java-files.sh and team-pipeline-local.sh scripts from scripts/shell/job/gp

This commit is contained in:
Matheus Albino Brunhara
2024-04-18 15:51:46 -03:00
parent 9eb11bc6f8
commit 0a006428f7
2 changed files with 109 additions and 50 deletions

View File

@@ -42,6 +42,10 @@ else
files=(`find * -maxdepth 0 -type f -regextype sed -regex $regex_search`)
fi
if ! $revert; then
echo "[INFO] Exploding files"
fi
for f in ${files[@]}; do
if [ ! -f "$f" ]; then
continue
@@ -60,6 +64,8 @@ for f in ${files[@]}; do
# for removal of files after else
f=$file_without_old_suffix
else
echo " `basename $f`"
mv $f $f.old
unzip -qq -d $f $f.old
touch $f.dodeploy