1
0
Fork 0
mirror of synced 2024-05-28 04:51:11 -04:00
zimfw/src/stage2/50_zimfw_uninstall.zsh.erb
Eric Nielsen e097e6bf71
Add list action, don't run tool on external module
Using the `list` action with `-v` shows all current details for the
existing modules.
Don't try to install or update external modules, since they have an
absolute path instead of a valid URL.
2021-09-19 13:37:13 -05:00

12 lines
369 B
Plaintext

_zimfw_uninstall() {
local zopt
if (( _zprintlevel > 0 )) zopt='-v'
if (( ${#_zunuseds} )); then
if (( _zprintlevel <= 0 )) || read -q "?Uninstall ${#_zunuseds} module(s) listed above [y/N]? "; then
_zimfw_print
command rm -rf ${zopt} ${ZIM_HOME}/modules/${^_zunuseds} || return 1
fi
fi
_zimfw_print -P '<%= done %>Done with uninstall.'
}