From dba4e92318ff2939aa0a71006afc35795f73723e Mon Sep 17 00:00:00 2001 From: Brett Jia Date: Tue, 6 Aug 2024 22:16:02 -0400 Subject: [PATCH] rename if not the same --- scripts/repackage_graalpy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}