Index: build.sh =================================================================== diff -u -r01c31fe0aaab4a86cc9ffb5e0b498f76e1f62f35 -r5c4a3b41a159d0e882fd41286d63e479a5aba08c --- build.sh (.../build.sh) (revision 01c31fe0aaab4a86cc9ffb5e0b498f76e1f62f35) +++ build.sh (.../build.sh) (revision 5c4a3b41a159d0e882fd41286d63e479a5aba08c) @@ -17,11 +17,16 @@ OLD_NAME="leahi_dialin-1.0.0-py3-none-any.whl" NEW_NAME="leahi_dialin-1.0.0" -NEW_NAME+="-$1" # Append the Bamboo Build Number (Incremental version) -NEW_NAME+="+$2" # Append the Project Checkout Branch Name -NEW_NAME+=".$3" # Append the Build Commit Hash -NEW_NAME+="-py3-none-any.whl" # Append the metadata and the file extension name -NEW_NAME=$(sed -e "s/\//_/g" <<< "$NEW_NAME") # Replaces backslashes in the branch name parameter with underscore +if [ "$1" NEQ "" ]; then + NEW_NAME="leahi_dialin-1.0.0" + NEW_NAME+="-$1" # Append the Bamboo Build Number (Incremental version) + NEW_NAME+="+$2" # Append the Project Checkout Branch Name + NEW_NAME+=".$3" # Append the Build Commit Hash + NEW_NAME+="-py3-none-any.whl" # Append the metadata and the file extension name + NEW_NAME=$(sed -e "s/\//_/g" <<< "$NEW_NAME") # Replaces backslashes in the branch name parameter with underscore +else + NEW_NAME="$OLD_NAME" +fi rm -rf dist/ python3 setup.py bdist_wheel