Loading .shell/funcs +7 −6 Original line number Diff line number Diff line Loading @@ -97,19 +97,20 @@ do_update() return fi touch "$timestamp" case `get_shell` in zsh) read "?$prompt" ans ;; *) read -p "$prompt" ans ;; esac case "$ans" in [Yy]|[Yy][Ee][Ss]) ;; [Nn]|[Nn][Oo]) touch "$timestamp"; return ;; *) return ;; esac cd ~ git pull --ff-only origin (cd ~ git pull --ff-only origin && update_submodules cd - >/dev/null ) || return touch "$timestamp" } Loading
.shell/funcs +7 −6 Original line number Diff line number Diff line Loading @@ -97,19 +97,20 @@ do_update() return fi touch "$timestamp" case `get_shell` in zsh) read "?$prompt" ans ;; *) read -p "$prompt" ans ;; esac case "$ans" in [Yy]|[Yy][Ee][Ss]) ;; [Nn]|[Nn][Oo]) touch "$timestamp"; return ;; *) return ;; esac cd ~ git pull --ff-only origin (cd ~ git pull --ff-only origin && update_submodules cd - >/dev/null ) || return touch "$timestamp" }