Skip to content

Commit aeb8276

Browse files
committed
Remove update option (-u)
- users can update lazy-connect using brew
1 parent 1946ab6 commit aeb8276

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lazy-connect

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ lazy-connect - Shell function to fuzzy search an IPSec VPN by name
6565
and connect to it automatically.
6666
6767
-i - Initialize lazy-connect. Stores the TOTP secret and VPN list
68-
-u - Update lazy-connect
6968
-r - Refresh vpn list in ~/.config/lazy-connect
7069
-h - Show this help
7170
EOF
@@ -134,12 +133,6 @@ function _lazy_connect() {
134133
EOF
135134
}
136135

137-
function _lazy_connect_update() {
138-
git -C $_lazy_connect_project_dir pull origin master
139-
echo -e "\n\nRun the below command or restart your shell."
140-
echo "$ source $_lazy_connect_project_dir/lazy-connect.sh"
141-
}
142-
143136
function lazy-connect() {
144137
local OPTIND
145138
mkdir -p $_lazy_connect_config_dir
@@ -159,10 +152,6 @@ function lazy-connect() {
159152
_lazy_connect_vpn_refresh
160153
return 0
161154
;;
162-
u)
163-
_lazy_connect_update
164-
return 0
165-
;;
166155
\?)
167156
echo "Invalid Option: -$OPTARG."
168157
_lazy_connect_usage

0 commit comments

Comments
 (0)