Manually move existing orig.tar.gz out of the way.

-f option to gzip is not allowed in GZIP environment anymore.
parent 0f1cb6aa
......@@ -62,7 +62,14 @@ done
# Repack everything
cd ..
mv "${source}-${upstream}" "${source}-${newups}"
GZIP="-9fn" tar -czf "../$basedir/${source}_${newups}.orig.tar.gz" "${source}-${newups}"
if [ -e "../$basedir/${source}_${newups}.orig.tar.gz" ]; then
mv "../$basedir/${source}_${newups}.orig.tar.gz" "../$basedir/${source}_${newups}.orig.tar.gz.bak"
GZIP="-9n" tar -czf "../$basedir/${source}_${newups}.orig.tar.gz" "${source}-${newups}"
if [ ! -e "../$basedir/${source}_${newups}.orig.tar.gz" ] && \
[ -e "../$basedir/${source}_${newups}.orig.tar.gz.bak" ]; then
mv "../$basedir/${source}_${newups}.orig.tar.gz.bak" "../$basedir/${source}_${newups}.orig.tar.gz"
rm -rf "${source}-${newups}"
cd ../ # out of temp
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