From 7aa0234094c5e2262a13ed8972b69a516c80a550 Mon Sep 17 00:00:00 2001 From: Derek Macias Date: Thu, 10 Dec 2015 21:38:34 -0700 Subject: [PATCH] update install script --- plugins/speedtest.plg | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/speedtest.plg b/plugins/speedtest.plg index b6db9290..7088a11c 100755 --- a/plugins/speedtest.plg +++ b/plugins/speedtest.plg @@ -77,8 +77,7 @@ sum1=$(/usr/bin/md5sum &plugin;/&name;-&version;.txz) sum2=$(/usr/bin/cat &plugin;/&name;-&version;.md5) if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then echo "Wrong 'plugin' package md5 hash." - rm &plugin;/&name;-&version;.txz - rm &plugin;/&name;-&version;.md5 + rm -f &plugin;/&name;-&version;.* exit 1 else upgradepkg --install-new &plugin;/&name;-&version;.txz @@ -112,9 +111,8 @@ The 'remove' script. --> -rm -rf &emhttp; -rm -f &plugin;/&name;-&version;z* -rm -f &plugin;/*.txz +removepkg &plugin;/&name;-&version;.txz +rm -f &plugin;/&name;-&version;.* echo "" echo "-----------------------------------------------------------"