File git-32-0ee79834ea9ebf6573a7b903f374c21e53a56c14.patch of Package aaa_base.17502

From 0ee79834ea9ebf6573a7b903f374c21e53a56c14 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=BCdiger=20Oertel?= <ro@suse.de>
Date: Wed, 9 Sep 2020 16:55:48 +0200
Subject: [PATCH] alias.bash check if ip command knows color=auto
 (jsc#SLE-7679)


diff --git a/files/etc/profile.d/alias.bash b/files/etc/profile.d/alias.bash
index 25072cc..b5599e2 100644
--- a/files/etc/profile.d/alias.bash
+++ b/files/etc/profile.d/alias.bash
@@ -27,7 +27,9 @@ alias rd=rmdir
 alias egrep='egrep --color=auto'
 alias fgrep='fgrep --color=auto'
 alias grep='grep --color=auto'
-alias ip='ip --color=auto'
+if ip --color=auto -V > /dev/null 2>/dev/null ; then
+    alias ip='ip --color=auto'
+fi
 alias md='mkdir -p'
 if test "$is" = "bash" -a ! -x /bin/which -a ! -x /usr/bin/which ; then
     #
openSUSE Build Service is sponsored by