Massively improves explode-java-files.sh and team-pipeline-local.sh scripts from scripts/shell/job/gp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user