[F] Fix editor version stuck on macOS using the pico editor

https://github.com/dylanaraps/neofetch/pull/2271
This commit is contained in:
Azalea 2023-08-09 18:52:55 -07:00
parent 65d82be06e
commit 01821a8d7a

View file

@ -2293,7 +2293,7 @@ get_editor() {
editor="${editor/$editor_name }" editor="${editor/$editor_name }"
;; ;;
*) *)
editor+=$("$editor_full_path" --version 2>&1) # editor+=$("$editor_full_path" --version 2>&1)
editor="${editor/$'\n'*}" editor="${editor/$'\n'*}"
;; ;;
esac esac