From 06aeb295d6432970d615c5551e3d941e50349c46 Mon Sep 17 00:00:00 2001 From: jan-tricks <113358501+jan-tricks@users.noreply.github.com> Date: Thu, 22 Jun 2023 13:20:39 +0200 Subject: [PATCH] corrected exclamation mark (#69) --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index b79dc71..389b2c6 100644 --- a/index.js +++ b/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}`