We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d4102f commit 6c04dc9Copy full SHA for 6c04dc9
lazy-connect.sh
@@ -5,7 +5,6 @@ function _lazy_connect_init() {
5
echo -n "Secret Key: "
6
read -s secret_key
7
echo "**********"
8
- mkdir -p $config_dir
9
echo $secret_key > $config_dir/secret
10
11
vpnNames=$(osascript <<EOF
@@ -78,6 +77,9 @@ EOF
78
77
}
79
80
function lazy-connect() {
+ config_dir=~/.config/lazy-connect
81
+ mkdir -p $config_dir
82
+
83
while getopts "ih" opt; do
84
case $opt in
85
h)
@@ -101,7 +103,6 @@ function lazy-connect() {
101
103
esac
102
104
done
105
- config_dir=~/.config/lazy-connect
106
secret=$(cat $config_dir/secret)
107
vpn_name=$(cat $config_dir/vpns \
108
| fzf --height=10 --ansi --reverse)
0 commit comments