Skip to content

Commit

Permalink
fix: escape the $web destination
Browse files Browse the repository at this point in the history
  • Loading branch information
manekinekko committed Oct 30, 2019
1 parent ff4285e commit 503153f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/deploy.ts
@@ -1,5 +1,5 @@
import chalk from "chalk";
import { az, Config, func, isProjectFileExists, joinPath, npm, readWorkspace, runCmd, kubectl } from "../core/utils";
import { az, Config, func, isProjectFileExists, joinPath, kubectl, npm, readWorkspace } from "../core/utils";
const debug = require("debug")("push");

module.exports = async function() {
Expand Down Expand Up @@ -34,7 +34,7 @@ module.exports = async function() {
debug(`deploying hosting`);
// https://docs.microsoft.com/en-us/cli/azure/storage/blob?view=azure-cli-latest#az-storage-blob-upload-batch
await az(
`storage blob upload-batch --source "${workspace.hosting.folder}" --destination "\$web" --account-name "${workspace.storage.name}" --no-progress`,
`storage blob upload-batch --source "${workspace.hosting.folder}" --destination "\\$web" --account-name "${workspace.storage.name}" --no-progress`,
`Deploying hosting ${chalk.cyan(workspace.project.name)}...`
);

Expand Down

0 comments on commit 503153f

Please sign in to comment.