summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2023-01-17 12:46:15 +0100
committerTuowen Zhao <ztuowen@gmail.com>2023-01-17 12:46:15 +0100
commitdb7efd2336e4dbe6abf321b00dbc11bc5afb1355 (patch)
tree720a58ff82bf0a0e0167594131f872d453b1828e /tools
parent04b8c052e5b624873b352889423c753ed1baf9c4 (diff)
parent8f0e296dbf27026ea0515ebae0d3cc41f236ecdc (diff)
downloadzsh-db7efd2336e4dbe6abf321b00dbc11bc5afb1355.tar.gz
zsh-db7efd2336e4dbe6abf321b00dbc11bc5afb1355.tar.bz2
zsh-db7efd2336e4dbe6abf321b00dbc11bc5afb1355.zip
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'tools')
-rwxr-xr-xtools/changelog.sh2
-rw-r--r--tools/check_for_upgrade.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/changelog.sh b/tools/changelog.sh
index 6489a3cb2..a5cc468f2 100755
--- a/tools/changelog.sh
+++ b/tools/changelog.sh
@@ -209,7 +209,7 @@ function display-release {
case "$output" in
raw) printf '%s' "$hash" ;;
text) printf '\e[33m%s\e[0m' "$hash" ;; # red
- md) printf '[`%s`](https://github.com/ohmyzsh/ohmyzsh/commit/%s)' "$hash" ;;
+ md) printf '[`%s`](https://github.com/ohmyzsh/ohmyzsh/commit/%s)' "$hash" "$hash" ;;
esac
}
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index cc527e72d..3a6bb6555 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -24,7 +24,7 @@ zstyle -s ':omz:update' mode update_mode || {
# - git is unavailable on the system.
if [[ "$update_mode" = disabled ]] \
|| [[ ! -w "$ZSH" || ! -O "$ZSH" ]] \
- || ! command -v git &>/dev/null; then
+ || ! command git --version 2>&1 >/dev/null; then
unset update_mode
return
fi