From 0cbfbadef4e72e8ccf63ccaebb1a512026b536a5 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Wed, 7 Feb 2024 10:35:57 +1100 Subject: [PATCH] Fixed an incorrect grep format --- Scripts/drone-upload-exists.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/drone-upload-exists.sh b/Scripts/drone-upload-exists.sh index cbea38e8e..7035d9597 100755 --- a/Scripts/drone-upload-exists.sh +++ b/Scripts/drone-upload-exists.sh @@ -21,7 +21,7 @@ fork_repo=$(echo "$head_info" | grep -o '"full_name":"[^"]*' | sed 's/"full_name fork_branch=$(echo "$head_info" | grep -o '"ref":"[^"]*' | sed 's/"ref":"//') upload_dir="https://oxen.rocks/${fork_repo}/${fork_branch}" -echo "Starting to poll ${upload_dir} every 10s to check for a build matching '${prefix}.*${suffix}'" +echo "Starting to poll ${upload_dir}/ every 10s to check for a build matching '${prefix}.*${suffix}'" # Loop indefinitely the CI can timeout the script if it takes too long total_poll_duration=0 @@ -37,7 +37,7 @@ while true; do fi # Extract 'session-ios...' titles using grep and awk - current_build_artifacts=$(echo "$build_artifacts_html" | grep -o 'href="${prefix}[^"]*' | sed 's/href="//') + 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}"