diff --git a/build_iwd.sh b/build_iwd.sh index 4f5c98b..57e5e66 100755 --- a/build_iwd.sh +++ b/build_iwd.sh @@ -1,4 +1,7 @@ #!/bin/bash -e + +iwd_target_filename="z_svr_hns.iwd" + if [ -z "${WORKSPACE}" ]; then export WORKSPACE="$(pwd)" fi @@ -26,7 +29,7 @@ modversion_txt_file="maps/mp/mods/_modversion.gsc" echo "getModVersionString(){return \"$(git describe --tags --always --dirty)\";}" > "$modversion_txt_file" echo "$modversion_txt_file" >> "$iwd_filelist" -rm -f "hns.iwd" -7z a -tzip -mx9 "hns.iwd" @"$iwd_filelist" +rm -f "${iwd_target_filename}" +7z a -tzip -mx9 "${iwd_target_filename}" @"$iwd_filelist" rm -f "$iwd_filelist" "$modversion_txt_file"