Skip to content

Commit cdd1fdf

Browse files
authored
Update azd hooks for Linux (#6)
1 parent 593897e commit cdd1fdf

10 files changed

+1
-1
lines changed

.devcontainer/on-create.sh

100644100755
File mode changed.

infra/hooks/deploy_swa.sh

100644100755
File mode changed.

infra/hooks/load_azd_env.sh

100644100755
File mode changed.

infra/hooks/login.sh

100644100755
File mode changed.

infra/hooks/postdeploy.sh

100644100755
File mode changed.

infra/hooks/postprovision.sh

100644100755
File mode changed.

infra/hooks/preprovision.sh

100644100755
File mode changed.

infra/hooks/preup.sh

100644100755
File mode changed.

infra/hooks/register_app.sh

100644100755
File mode changed.

infra/hooks/update_app.sh

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if [[ -z "$GITHUB_WORKSPACE" ]]; then
4848

4949
# Generate a SAS URL for the token store
5050
accountKey=$(az storage account keys list -g "$RESOURCE_GROUP" -n "$STORAGE_NAME" --query "[0].value" -o tsv)
51-
expiry=$(date -d "+6 months" +%Y-%m-%d)
51+
expiry=$(date $([[ "$OSTYPE" == "darwin"* ]] && echo "-v +6m" || echo "-d '+6 months'") +%Y-%m-%d)
5252
sasToken=$(az storage account generate-sas --account-name "$STORAGE_NAME" --account-key "$accountKey" --expiry "$expiry" --https-only --permissions acuw --resource-types co --services bfqt -o tsv)
5353
sasUrl="$STORAGE_URL?$sasToken"
5454

0 commit comments

Comments
 (0)