Fix ip color on EL 7.

iproute2 on EL 7 (ip utility, iproute2-ss170501)
does not support --color=auto, only -c[olor].

Signed-off-by: Doncho N. Gunchev <dgunchev@gmail.com>
This commit is contained in:
Doncho N. Gunchev 2024-04-03 10:28:31 +03:00
parent 9026bf704e
commit 3f8ffe86c9
Signed by: dgunchev
GPG key ID: D30FD19F37E002A9
2 changed files with 8 additions and 2 deletions

View file

@ -11,3 +11,6 @@ change="* $(date +'%a %b %d %Y') $(git log -1 --format='%aN <%aE>') - ${rpm_ver}
awk -v change="${change}" '/^%changelog/ {print; print change; next} 1' gwebu-profile.spec.in \
> gwebu-profile.spec.tmp && mv gwebu-profile.spec.tmp gwebu-profile.spec.in
sed -i "s/Version: .*/Version: ${rpm_ver}/" gwebu-profile.spec.in
sed -i "s/Release: .*/Release: ${rpm_numeric_rev}/" gwebu-profile.spec.in

View file

@ -1,7 +1,7 @@
Summary: Gwebu profile.d - cool date, prompt with history, aliases
Name: gwebu-profile
Version: 1.0.0
Release: 5
Version: 1.0.1
Release: 0
BuildArch: noarch
License: GPLv2
Source0: profile.d-%{version}-%{release}.tar.xz
@ -41,6 +41,9 @@ install -m 0644 etc/profile.d/*.sh %{buildroot}%{_sysconfdir}/profile.d/
%changelog
* Wed Apr 03 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.1-0
- Fix ip color on EL 7.
* Thu Feb 22 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.0-4
- General rework of the build process (distribution source and rpm).