You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
update_all: Zim step fails with 'ZIM_HOME: unbound variable' when Zim is not configured #285
dot package update_all (the up alias in many dotfiles) aborts its Zim step with ZIM_HOME: unbound variable when ZIM_HOME is not set, and then reports that every package was updated.
How to reproduce
Use dotly with a shell environment that does not export ZIM_HOME: for example a zsh setup that does not use Zim, or a .zshenv that does not keep the template's export ZIM_HOME=... line.
Run dot package update_all.
Actual behaviour
## 👽 Zim Framework
/home/<user>/.dotfiles/modules/dotly/scripts/package/update_all: line 33: ZIM_HOME: unbound variable
## 🌚 dotly
> Done
👌 All your packages have been successfully updated
Expected behaviour
When Zim is not configured, the Zim step is skipped silently, like the other package managers that are not installed.
Cause
scripts/package/update_all runs under set -u and calls Zim unconditionally:
Activity