zimfw/tools/zim_update

13 lines
466 B
Plaintext

#
# zim_update - update the zim repository
#
print -u2 -P '%F{yellow}WARNING: This version of Zim will be deprecated in a future update in favor of Zim version 1.0.0. Manually install Zim 1.0.0 to continue receiving updates. See https://github.com/zimfw/zimfw/pull/323%f'
cd ${ZIM_HOME}
# this is the cleanest way I know how to update a repository
git remote update -p
git merge --ff-only @\{u\}
# and update the submodules
git submodule update --init --recursive