diff --git a/scripts/repackage_graalpy.sh b/scripts/repackage_graalpy.sh index 9459fa78..40e61810 100755 --- a/scripts/repackage_graalpy.sh +++ b/scripts/repackage_graalpy.sh @@ -78,7 +78,9 @@ function repackage_graal () { fi cd ${WORKDIR} - mv ${EXTRACTED_FILENAME} ${UPLOAD_FILENAME} + if [[ "${EXTRACTED_FILENAME}" != "${UPLOAD_FILENAME}" ]]; then + mv ${EXTRACTED_FILENAME} ${UPLOAD_FILENAME} + fi python3 -m pyclean -v ${UPLOAD_FILENAME} tar -czf ${WORKDIR}/${UPLOAD_FILENAME}.tar.gz ${UPLOAD_FILENAME}