This commit is contained in:
Derek Macias 2015-12-10 21:11:21 -07:00
parent 1a27b3e8e6
commit 55eb6ea0d5

View File

@ -77,8 +77,8 @@ sum1=$(/usr/bin/md5sum &plugin;/&name;-&version;.txz)
sum2=$(/usr/bin/cat &plugin;/&name;-&version;.md5) sum2=$(/usr/bin/cat &plugin;/&name;-&version;.md5)
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
echo "Wrong 'plugin' package md5 hash." echo "Wrong 'plugin' package md5 hash."
rm &plugin;/&name;-&version;.txz #rm &plugin;/&name;-&version;.txz
rm &plugin;/&name;-&version;.md5 #rm &plugin;/&name;-&version;.md5
exit 1 exit 1
else else
upgradepkg --install-new &plugin;/&name;-&version;.txz upgradepkg --install-new &plugin;/&name;-&version;.txz