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

+6-6
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)