We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c531430 commit 7a23623Copy full SHA for 7a23623
1 file changed
get_azure_share_sas/get_azure_share_sas.sh
@@ -29,8 +29,13 @@ else
29
fi;
30
31
32
+echo "Expiration date \"$EXPIRATION_DATE\""
33
+if [[ "$OSTYPE" =~ ^darwin ]]; then
34
+ end=$(date -v+10M "+%Y-%m-%dT%H:%MZ")
35
+else
36
+ end=$(date -d "$EXPIRATION_DATE" '+%Y-%m-%dT%H:%MZ')
37
+fi;
38
-end=$(date -d "$EXPIRATION_DATE" '+%Y-%m-%dT%H:%MZ')
39
echo "Generating SAS for $destination with expiration date $end"
40
sas=$(
41
az storage account generate-sas \
0 commit comments