Commit 164b843b authored by gpernot's avatar gpernot
Browse files

some fixes

parent 75508d6f
......@@ -6,15 +6,15 @@ staging_area=/home/otbpush/test/staging
prod_area=/home/otbpush/test/prod
#check if we are dealing with the right packages
pack_suffix=-`echo "$CI_COMMIT_TAG" | grep -o "rc[0-9]*"` # this retrieve the rc number
pack_suffix=-$(echo "$CI_COMMIT_TAG" | grep -o "rc[0-9]*") # this retrieve the rc number
echo "pack_suffix=${pack_suffix}"
echo "Renaming binary packages"
# find build_packages/. -name "*.run" \
# -exec sh -c 'mv "$1" "${1%.run}${pack_suffix}.run"' _ {} \;
packages_list=`ls ${staging_area} | grep -E "OTB-[0-9]*.[0-9]*.[0-9]*-.*\.(run|zip)"`
packages_list=$(ls ${staging_area} | grep -E "OTB-[0-9]*.[0-9]*.[0-9]*-.*\.(run|zip)")
ls -all build_packages/
for name in packages_list
for name in $packages_list
do
len=${#name}
#add pack_suffix to the name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment