Skip to content

Commit

Permalink
Update util.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Jun 6, 2020
1 parent 7044d02 commit 14e664a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const hasRequiredParameters = (action: ActionInterface): void => {
)
}

if (!existsSync(action.folder)) {
if (!existsSync(action.folder) && action.folder !== action.root) {
throw new Error(
`The ${action.folder} directory you're trying to deploy doesn't exist. ❗`
)
Expand Down

0 comments on commit 14e664a

Please sign in to comment.