File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ find_service_account() {
3838 return 0
3939 fi
4040 fi
41-
41+
4242 # If that doesn't work, try to find any service account in the project
4343 local sa_list=$( gcloud iam service-accounts list --format=" value(email)" --limit=1 2> /dev/null)
4444 if [ -n " $sa_list " ]; then
4545 echo " $sa_list " | head -n 1
4646 return 0
4747 fi
48-
48+
4949 return 1
5050}
5151
@@ -76,7 +76,7 @@ process_file() {
7676 if [ $? -eq 0 ] && [ -n " $signed_url_output " ]; then
7777 # Extract just the signed_url from the YAML output
7878 local signed_url=$( echo " $signed_url_output " | grep " signed_url:" | sed ' s/signed_url: //' )
79-
79+
8080 if [ -n " $signed_url " ]; then
8181 # Extract the path after the bucket name and convert slashes to double underscores
8282 local path_part=$( echo " $object " | sed ' s|gs://[^/]*/||' )
@@ -105,4 +105,4 @@ gsutil ls -r "$GCS_PATH" 2>/dev/null | \
105105
106106echo " "
107107echo " Done! Signed URLs written to $OUTPUT_FILE "
108- echo " Total images processed: $( wc -l < " $OUTPUT_FILE " ) "
108+ echo " Total images processed: $( wc -l < " $OUTPUT_FILE " ) "
You can’t perform that action at this time.
0 commit comments