Skip to content

Commit 47d3dca

Browse files
committed
snake case
1 parent 7708487 commit 47d3dca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkgbuild/scripts/preinstall

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ if pgrep 'Coder Desktop'; then
99
touch $RUNNING_MARKER_FILE
1010
fi
1111

12-
vpnName=$(scutil --nc list | grep "com.coder.Coder-Desktop" | awk -F'"' '{print $2}')
12+
vpn_name=$(scutil --nc list | grep "com.coder.Coder-Desktop" | awk -F'"' '{print $2}')
1313

1414
echo "Turning off VPN"
15-
if [[ -n "$vpnName" ]]; then
15+
if [[ -n "$vpn_name" ]]; then
1616
echo "CoderVPN found. Stopping..."
17-
if scutil --nc status "$vpnName" | grep -q "^Connected$"; then
17+
if scutil --nc status "$vpn_name" | grep -q "^Connected$"; then
1818
touch $VPN_MARKER_FILE
1919
fi
20-
scutil --nc stop "$vpnName"
20+
scutil --nc stop "$vpn_name"
2121

2222
# Wait for VPN to be disconnected
23-
while scutil --nc status "$vpnName" | grep -q "^Connected$"; do
23+
while scutil --nc status "$vpn_name" | grep -q "^Connected$"; do
2424
echo "Waiting for VPN to disconnect..."
2525
sleep 1
2626
done
27-
while scutil --nc status "$vpnName" | grep -q "^Disconnecting$"; do
27+
while scutil --nc status "$vpn_name" | grep -q "^Disconnecting$"; do
2828
echo "Waiting for VPN to complete disconnect..."
2929
sleep 1
3030
done

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy