From c6f8780ff7fc6b89d715f1d63bba777b549376f7 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Sun, 25 Jun 2023 12:30:33 +0200 Subject: [PATCH] Fix2 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);