Skip to content
Snippets Groups Projects
Commit e4ead3c3 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: ignore any aliases and color settings for 'ip' command, as they break in RHEL 7

parent 68ec9546
Branches
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ figlet SLUBarchiv ...@@ -22,7 +22,7 @@ figlet SLUBarchiv
HOST="${HOSTNAME}.$( dnsdomainname )" HOST="${HOSTNAME}.$( dnsdomainname )"
IP="$( IP="$(
ip --color=never -4 -brief addr show | \ command ip -4 -brief addr show | \
grep -v 'UNKNOWN' | \ grep -v 'UNKNOWN' | \
while read -r line; do while read -r line; do
echo "$( printf " %.0s" {1..21} )${line}"; echo "$( printf " %.0s" {1..21} )${line}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment