Reversing AniNIX check diff order, so recommendation appears in green text
This commit is contained in:
@@ -5,7 +5,7 @@ if [ "$(basename "$PWD")" == 'Uniglot' ] && [ ! -f /usr/share/licenses/Uniglot/L
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
diff -w /usr/share/licenses/Uniglot/LICENSE ./LICENSE;
|
||||
diff -w ./LICENSE /usr/share/licenses/Uniglot/LICENSE ./LICENSE
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
if [ "$(basename "$PWD")" == 'Uniglot' ]; then
|
||||
|
||||
@@ -6,7 +6,7 @@ export retcode=0
|
||||
for term in ^pkgname\= ^replaces\= ^pkgver\= ^epoch\= ^pkgdesc\= ^url\= ^license\= ../LICENSE; do
|
||||
current="$(grep -E "${term}" ./PKGBUILD)"
|
||||
reference="$(grep -E "${term}" /opt/aninix/Uniglot/pacman/PKGBUILD)"
|
||||
diff -w --color=always <(printf "${reference}") <(printf "${current}")
|
||||
diff -w --color=always <(printf "${current}") <(printf "${reference}")
|
||||
export retcode="$(( $retcode || $? ))";
|
||||
if [ "$retcode" != 0 ]; then
|
||||
echo "$term has delta."
|
||||
|
||||
Reference in New Issue
Block a user