Skip to content

Commit

Permalink
Remove flag -g,--global of command fvm deactivate
Browse files Browse the repository at this point in the history
  • Loading branch information
hyiso committed Jun 26, 2023
1 parent 465d7bc commit 09b3372
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions fvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,6 @@ fvm() {
fvm_echo ' --no-beta Exclude beta released versions'
fvm_echo ' --no-dev Exclude dev released versions'
fvm_echo ' fvm deactivate Undo effects of `fvm` on current shell'
fvm_echo ' The following optional arguments:'
fvm_echo ' -g,--global Unset global default flutter <version>.'
fvm_echo ' fvm unload Unload `fvm` from shell'
fvm_echo ' fvm cache dir Display path to the cache directory for fvm'
fvm_echo ' fvm cache clear Empty cache directory for fvm'
Expand Down Expand Up @@ -686,14 +684,6 @@ fvm() {
fvm_echo 'v0.4.1'
;;
"deactivate")
local FVM_GLOBAL
while [ $# -ne 0 ]; do
case "${1}" in
-g | --global) FVM_GLOBAL=1 ;;
--) ;;
esac
shift
done
local NEWPATH
NEWPATH="$(fvm_strip_path "${PATH}" "/bin")"
if [ "_${PATH}" = "_${NEWPATH}" ]; then
Expand All @@ -713,9 +703,6 @@ fvm() {
fvm_err "${FVM_DIR}/*/share/man removed from \${MANPATH}"
fi
fi
if [ "${FVM_GLOBAL}" = "1" ]; then
command rm "${FVM_DIR}/flutter.version"
fi
;;
"unload")
fvm deactivate >/dev/null 2>&1
Expand Down

0 comments on commit 09b3372

Please sign in to comment.