Don't call _zimfw_build_login_init after upgrade

as it was being used to update the login_init.zsh script. BUT the
function mentioned, which updates that script, would only be updated
after zimfw.zsh is sourced again, so no point in trying to call it at
this point.
pull/370/head
Eric Nielsen 4 years ago
parent be2be83560
commit 7fdf65c58f
No known key found for this signature in database
GPG Key ID: 47D1DBFA0765A1FB
  1. 2
      src/stage2/80_zimfw.zsh.erb
  2. 4
      zimfw.zsh

@ -77,7 +77,7 @@ Options:
upgrade)
_zimfw_upgrade || return 1
(( _zprintlevel-- ))
_zimfw_build_login_init && _zimfw_compile
_zimfw_compile
;;
version) print -PR ${_zversion} ;;
*)

@ -259,7 +259,7 @@ _zimfw_compile() {
}
_zimfw_info() {
print -R 'Zim version: '${_zversion}' (previous commit is dab4b87)'
print -R 'Zim version: '${_zversion}' (previous commit is be2be83)'
print -R 'ZIM_HOME: '${ZIM_HOME}
print -R 'Zsh version: '${ZSH_VERSION}
print -R 'System info: '$(command uname -a)
@ -458,7 +458,7 @@ fi
upgrade)
_zimfw_upgrade || return 1
(( _zprintlevel-- ))
_zimfw_build_login_init && _zimfw_compile
_zimfw_compile
;;
version) print -PR ${_zversion} ;;
*)

Loading…
Cancel
Save