From f7b61fd19b801f3da11874a967becc2cb2afb159 Mon Sep 17 00:00:00 2001 From: Andrea Cotza Date: Sun, 4 Oct 2015 16:17:06 +0200 Subject: [PATCH] Checks if the sources are still present in /tmp --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index a9d82e9..ba3132e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -4,6 +4,9 @@ sudo service rtorrent stop # Build libtorrent cd /tmp +if [ -d libtorrent ]; then + sudo rm -r libtorrent +fi sudo git clone https://github.com/rakshasa/libtorrent.git cd libtorrent sudo git checkout 0.13.6 @@ -14,6 +17,9 @@ sudo make install # Build rtorrent cd /tmp +if [ -d libtorrent ]; then + sudo rm -r rtorrent +fi sudo git clone https://github.com/rakshasa/rtorrent.git cd rtorrent sudo git checkout 0.9.6