mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2026-03-02 03:49:25 +00:00
Make stderr redirection forward compatible
This commit is contained in:
@@ -10,10 +10,10 @@ end
|
||||
set -l latest_version (echo -e "$required_version\\n$installed_version" | command sort -r -n -t '.' -k 1,1 -k 2,2 -k 3,3 -k 4,4 | command head -n 1)
|
||||
|
||||
if [ "$installed_version" != "$latest_version" ]
|
||||
set_color red ^/dev/null
|
||||
set_color red 2>/dev/null
|
||||
echo "Fish $required_version or greater is required for bobthefish."
|
||||
echo
|
||||
echo "To use bobthefish with Fish $installed_version, checkout the `support/fish-2.2.x` branch"
|
||||
echo "in $OMF_PATH/themes/bobthefish/"
|
||||
set color normal ^/dev/null
|
||||
set color normal 2>/dev/null
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user