Added some debugging code for the upload exists script

pull/950/head
Morgan Pretty 3 months ago
parent 518818a8b0
commit a05963f6ac

@ -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

@ -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)

Loading…
Cancel
Save