Skip to content

Commit 09b3372

Browse files
committed
Remove flag -g,--global of command fvm deactivate
1 parent 465d7bc commit 09b3372

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

fvm.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,6 @@ fvm() {
406406
fvm_echo ' --no-beta Exclude beta released versions'
407407
fvm_echo ' --no-dev Exclude dev released versions'
408408
fvm_echo ' fvm deactivate Undo effects of `fvm` on current shell'
409-
fvm_echo ' The following optional arguments:'
410-
fvm_echo ' -g,--global Unset global default flutter <version>.'
411409
fvm_echo ' fvm unload Unload `fvm` from shell'
412410
fvm_echo ' fvm cache dir Display path to the cache directory for fvm'
413411
fvm_echo ' fvm cache clear Empty cache directory for fvm'
@@ -686,14 +684,6 @@ fvm() {
686684
fvm_echo 'v0.4.1'
687685
;;
688686
"deactivate")
689-
local FVM_GLOBAL
690-
while [ $# -ne 0 ]; do
691-
case "${1}" in
692-
-g | --global) FVM_GLOBAL=1 ;;
693-
--) ;;
694-
esac
695-
shift
696-
done
697687
local NEWPATH
698688
NEWPATH="$(fvm_strip_path "${PATH}" "/bin")"
699689
if [ "_${PATH}" = "_${NEWPATH}" ]; then
@@ -713,9 +703,6 @@ fvm() {
713703
fvm_err "${FVM_DIR}/*/share/man removed from \${MANPATH}"
714704
fi
715705
fi
716-
if [ "${FVM_GLOBAL}" = "1" ]; then
717-
command rm "${FVM_DIR}/flutter.version"
718-
fi
719706
;;
720707
"unload")
721708
fvm deactivate >/dev/null 2>&1

0 commit comments

Comments
 (0)