diff --git a/Scripts/drone-static-upload.sh b/Scripts/drone-static-upload.sh index 6a0120433..1363a4b83 100755 --- a/Scripts/drone-static-upload.sh +++ b/Scripts/drone-static-upload.sh @@ -23,11 +23,9 @@ sim_path="build/Session_sim.xcarchive/Products/Applications/Session.app" # Validate the paths exist if [ -d $prod_path ]; then - suffix="-store" suffix="store" target_path=$prod_path elif [ -d $sim_path ]; then - suffix="-sim" suffix="sim" target_path=$sim_path else diff --git a/Scripts/drone-upload-exists.sh b/Scripts/drone-upload-exists.sh index 64fe91c98..cbea38e8e 100755 --- a/Scripts/drone-upload-exists.sh +++ b/Scripts/drone-upload-exists.sh @@ -32,13 +32,16 @@ while true; do build_artifacts_html=$(curl -s "${upload_dir}/") if [ $? != 0 ]; then - echo "Failed to retrieve build artifact list" + echo -e "\n\n\n\n\e[31;1mFailed to retrieve build artifact list\e[0m\n\n\n" exit 1 fi # Extract 'session-ios...' titles using grep and awk current_build_artifacts=$(echo "$build_artifacts_html" | grep -o 'href="${prefix}[^"]*' | sed 's/href="//') + echo -e "\n\n\n\nDebug - Existing build artifacts:" + echo -e "${current_build_artifacts}" + # Use grep to check for the combination target_file=$(echo "$current_build_artifacts" | grep -o "${prefix}.*${suffix}" | tail -n 1)