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;
|
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
|
||||||
|
|||||||
@@ -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."
|
||||||
|
|||||||
Reference in New Issue
Block a user