Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit47d3dca

Browse files
committed
snake case
1 parent7708487 commit47d3dca

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)

[8]ページ先頭

©2009-2025 Movatter.jp