Reversing AniNIX check diff order, so recommendation appears in green text

This commit is contained in:
2025-12-14 11:50:50 -06:00
parent 3538b44a20
commit 87f3e05a28
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ if [ "$(basename "$PWD")" == 'Uniglot' ] && [ ! -f /usr/share/licenses/Uniglot/L
exit 0; exit 0;
fi fi
diff -w /usr/share/licenses/Uniglot/LICENSE ./LICENSE; diff -w ./LICENSE /usr/share/licenses/Uniglot/LICENSE ./LICENSE
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
if [ "$(basename "$PWD")" == 'Uniglot' ]; then if [ "$(basename "$PWD")" == 'Uniglot' ]; then

View File

@@ -6,7 +6,7 @@ export retcode=0
for term in ^pkgname\= ^replaces\= ^pkgver\= ^epoch\= ^pkgdesc\= ^url\= ^license\= ../LICENSE; do for term in ^pkgname\= ^replaces\= ^pkgver\= ^epoch\= ^pkgdesc\= ^url\= ^license\= ../LICENSE; do
current="$(grep -E "${term}" ./PKGBUILD)" current="$(grep -E "${term}" ./PKGBUILD)"
reference="$(grep -E "${term}" /opt/aninix/Uniglot/pacman/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 || $? ))"; export retcode="$(( $retcode || $? ))";
if [ "$retcode" != 0 ]; then if [ "$retcode" != 0 ]; then
echo "$term has delta." echo "$term has delta."