Skip to content

Commit

Permalink
fix(#69): sasjs add (local) does not work if local env does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
saadjutt01 committed Sep 8, 2020
1 parent 208759c commit 489cd56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sasjs-add/index.js
@@ -1,3 +1,4 @@
import { create } from '../sasjs-create'
import { getUserInput } from '../utils/input-utils'
import chalk from 'chalk'
import path from 'path'
Expand Down Expand Up @@ -69,6 +70,8 @@ async function getLocalConfig() {
const config = await getConfiguration(
path.join(buildSourceFolder, 'sasjsconfig.json')
)
if (!config)
await create('.', 'sasonly')
return config
}

Expand Down

0 comments on commit 489cd56

Please sign in to comment.