diff --git a/exa.plg b/exa.plg index f982718..1209f67 100644 --- a/exa.plg +++ b/exa.plg @@ -23,7 +23,15 @@ -rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null | grep -v '&version;') + +file=$(/usr/bin/ls /boot/config/plugins/&name;/&name;*.txz | grep -v '&version;') +if [ ! -z "$file" ] +then + filename=$(basename -- $file) + previous="${filename%.*}" + removepkg $previous + rm -f $file +fi