Index: build.sh =================================================================== diff -u -r01c31fe0aaab4a86cc9ffb5e0b498f76e1f62f35 -r83dfc943fa4fa3d99c74d86b4b9449df19022b44 --- build.sh (.../build.sh) (revision 01c31fe0aaab4a86cc9ffb5e0b498f76e1f62f35) +++ build.sh (.../build.sh) (revision 83dfc943fa4fa3d99c74d86b4b9449df19022b44) @@ -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 [ -n "$1" ]; 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