mirror of
https://github.com/deployphp/action.git
synced 2024-11-26 21:59:02 +00:00
corrected exclamation mark (#69)
This commit is contained in:
parent
26fe6d39eb
commit
06aeb295d6
10
index.js
10
index.js
@ -117,13 +117,13 @@ async function dep() {
|
||||
try {
|
||||
let optionsArg = core.getInput('options')
|
||||
if (optionsArg !== '') {
|
||||
for (let [key, value] in Object.entries(JSON.parse(optionsArg))) {
|
||||
options.push('-o', `${key}=${value}`)
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Invalid JSON in options')
|
||||
for (let [key, value] in Object.entries(JSON.parse(optionsArg))) {
|
||||
options.push('-o', `${key}=${value}`)
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Invalid JSON in options')
|
||||
}
|
||||
|
||||
try {
|
||||
await $`php ${dep} ${cmd} ${recipe} --no-interaction ${ansi} ${verbosity} ${options}`
|
||||
|
Loading…
Reference in New Issue
Block a user