diff --git a/index.js b/index.js index 827e7bf..f698607 100644 --- a/index.js +++ b/index.js @@ -49,7 +49,7 @@ async function vpnConnect(vpnName) { try { execSync(`nmcli connection up "${vpnName}"`); - const status = execSync('nmcli connection show --active') + const status = await execSync('nmcli connection show --active') .toString() .includes(vpnName); console.log(status);