Skip to content

Commit

Permalink
Fixup the cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul authored and Paul committed Apr 20, 2020
1 parent 8879654 commit e3d6ec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/update
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ if [ "$local_version" == "$remote_version" ]; then
else
echo "Updating plugin";
workdir=`mktemp -d /root/XXXXXXX`
trap '/usr/bin/rm -f $workdir' 0
trap "rm -rf $workdir" 0

cd $workdir;

wget $url
unzip $remote_version.zip
cd cpanel_addon-maldet-$remote_version
./install
cd
fi

0 comments on commit e3d6ec0

Please sign in to comment.