Commit 9e49e31b authored by Dylan Araps's avatar Dylan Araps

Merge branch 'master' of https://github.com/dylanaraps/neofetch

parents 517bde1c 3b433558
......@@ -1538,8 +1538,8 @@ getresolution () {
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
fi
[[ "$refresh_rate" == "off" ]] && \
resolution="${resolution// @ *([0-9])Hz}"
[ "$refresh_rate" == "off" ] || [ "${resolution// * @ }" == "0Hz" ] && \
resolution="${resolution// @ *[0-9]Hz}"
;;
"Windows")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment