add only Darwin support

This commit is contained in:
Ethan Edwards 2023-04-08 15:12:22 -04:00 committed by GitHub
parent 0850532083
commit 8eacce7ee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,11 @@ source $current_dir/utils.sh
vpn_function() { vpn_function() {
case $(uname -s) in case $(uname -s) in
Linux | Darwin) Linux)
# TODO
;;
Darwin)
vpn=$(scutil --nc list | grep Connected) vpn=$(scutil --nc list | grep Connected)
if [ -z $vpn ]; then if [ -z $vpn ]; then