Skip to content

Commit 9839990

Browse files
fix(pre_commit): 🎨 auto format pre-commit hooks
1 parent 5929f86 commit 9839990

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/generateAzureSasUrls.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ process_blob() {
5252
local storage_account="$2"
5353
local container="$3"
5454
local expiry="$4"
55-
55+
5656
# Generate SAS token for the specific blob (redirect stderr to suppress warnings)
5757
local sas_token=$(az storage blob generate-sas \
5858
--account-name "$storage_account" \
@@ -63,14 +63,14 @@ process_blob() {
6363
--https-only \
6464
--auth-mode key \
6565
--output tsv 2>/dev/null)
66-
66+
6767
if [ $? -eq 0 ]; then
6868
# Construct the full URL with SAS token
6969
local signed_url="https://${storage_account}.blob.core.windows.net/${container}/${blob_name}?${sas_token}"
70-
70+
7171
# Create name with full path using double underscores instead of slashes
7272
local name_with_path=$(echo "$blob_name" | sed 's|/|__|g')
73-
73+
7474
# Output JSONL
7575
echo "{\"name\": \"$name_with_path\", \"url\": \"$signed_url\"}"
7676
fi
@@ -82,7 +82,7 @@ process_blob_with_connection() {
8282
local storage_account="$2"
8383
local container="$3"
8484
local expiry="$4"
85-
85+
8686
# Generate SAS token using connection string if AZURE_STORAGE_CONNECTION_STRING is set
8787
if [ -n "$AZURE_STORAGE_CONNECTION_STRING" ]; then
8888
local sas_token=$(az storage blob generate-sas \
@@ -104,7 +104,7 @@ process_blob_with_connection() {
104104
--https-only \
105105
--output tsv 2>/dev/null)
106106
fi
107-
107+
108108
if [ $? -eq 0 ]; then
109109
local signed_url="https://${storage_account}.blob.core.windows.net/${container}/${blob_name}?${sas_token}"
110110
local name_with_path=$(echo "$blob_name" | sed 's|/|__|g')

0 commit comments

Comments
 (0)