Skip to content

Commit e3d6ec0

Browse files
PaulPaul
authored andcommitted
Fixup the cleanup
1 parent 8879654 commit e3d6ec0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/bin/update

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ if [ "$local_version" == "$remote_version" ]; then
1313
else
1414
echo "Updating plugin";
1515
workdir=`mktemp -d /root/XXXXXXX`
16-
trap '/usr/bin/rm -f $workdir' 0
16+
trap "rm -rf $workdir" 0
1717

1818
cd $workdir;
1919

2020
wget $url
2121
unzip $remote_version.zip
2222
cd cpanel_addon-maldet-$remote_version
2323
./install
24+
cd
2425
fi

0 commit comments

Comments
 (0)