diff --git a/rtorrent-easyinstall.sh b/rtorrent-easyinstall.sh index 86e23128..90d687f4 100644 --- a/rtorrent-easyinstall.sh +++ b/rtorrent-easyinstall.sh @@ -108,7 +108,8 @@ install_libtorrent() { if [ ! -d "rtorrent" ]; then echo "Cloning rtorrent repository..." git clone https://github.com/stickz/rtorrent.git || { echo "Failed to clone rtorrent repository. Exiting..."; exit 1; } - + cd rtorrent + else echo "rtorrent repository already cloned. Updating..." cd rtorrent || { echo "Directory rtorrent not found. Exiting..."; exit 1; } @@ -140,6 +141,7 @@ install_rtorrent() { if [ ! -d "rtorrent" ]; then echo "Cloning rtorrent repository..." git clone https://github.com/stickz/rtorrent.git || { echo "Failed to clone rtorrent repository. Exiting..."; exit 1; } + cd rtorrent else echo "rtorrent repository already cloned. Updating..." cd rtorrent || { echo "Directory rtorrent not found. Exiting..."; exit 1; }