Skip to content

Commit 753db10

Browse files
fix(pre_commit): 🎨 auto format pre-commit hooks
1 parent 96aec99 commit 753db10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/generateGCSSignedUrls.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

106106
echo ""
107107
echo "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")"

0 commit comments

Comments
 (0)