Skip to content

Commit 672fc4b

Browse files
committed
Update supported systems
wsl-vpnkit prints all missing dependencies once
1 parent 42c2d57 commit 672fc4b

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Supported OS
99

1010
* Ubuntu 22.04 LTS
1111
* Ubuntu 22.04 LTS in WSL2
12-
* macOS 13 on Apple Silicon
12+
* macOS 26 on Apple Silicon
1313

1414
Prerequisites
1515
-----
@@ -67,7 +67,7 @@ Customizing Bash configuration
6767

6868
Local Bash configuration can be customized from `~/.bash_login`,
6969
`~/.bash_aliases` and `~/.bash_config` files. If one of these exists, it is
70-
included in the login shell bashrc and never overwritten by the installer.
70+
included in the login shell bashrc and never overwritten by the installer.
7171

7272
```
7373
echo 'export EDITOR=/usr/local/bin/atom' >> ~/.bash_config

platform/wsl/bin/wsl-vpnkit

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,21 @@ prepare () {
5757
}
5858

5959
depends () {
60-
local name
60+
local name abort
61+
62+
abort=0
6163

6264
for name in "awk" "cat" "iptables" "nslookup" "ping" "tar" "wget"; do
6365
if ! [ "$(command -v "$name")" ]; then
64-
echo "Dependency missing: $name" >&1
65-
exit 1
66+
echo "Dependency missing: $name" >&2
67+
abort=1
6668
fi
6769
done
70+
71+
if [ "$abort" -eq 1 ]; then
72+
echo "Some dependencies not found, aborting." >&2
73+
exit 1
74+
fi
6875
}
6976

7077
install-dependencies () {

0 commit comments

Comments
 (0)