Skip to content

Commit

Permalink
rename if not the same
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Aug 7, 2024
1 parent 128c2f5 commit dba4e92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/repackage_graalpy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit dba4e92

Please sign in to comment.