Skip to content

Commit 8879654

Browse files
PaulPaul
authored andcommitted
Remove work_dir after updating
1 parent 9e2ada0 commit 8879654

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/bin/update

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ 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
17+
1618
cd $workdir;
1719

1820
wget $url

0 commit comments

Comments
 (0)