From 01d170e1ab466fce56cd1ee55131b1d4d410dd3c Mon Sep 17 00:00:00 2001 From: slrslr <6596726+slrslr@users.noreply.github.com> Date: Sun, 15 Nov 2020 12:21:42 +0000 Subject: [PATCH] Update install-tr-control.sh Please either use find to search only in common directories like i propose or use "-mount" parameter to a find command which would prevent scanning mounted external drives. In my case current version takes more than 30 minutes to complete scan due to external drive mount points.. --- release/install-tr-control.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/install-tr-control.sh b/release/install-tr-control.sh index b5cf9df..7ebb357 100644 --- a/release/install-tr-control.sh +++ b/release/install-tr-control.sh @@ -160,7 +160,7 @@ findWebFolder() { showLog "$ROOT_FOLDER/web $MSG_AVAILABLE." else showLog "$MSG_THE_SPECIFIED_DIRECTORY_DOES_NOT_EXIST" - ROOT_FOLDER=`find / -name 'web' -type d 2>/dev/null| grep 'transmission/web' | sed 's/\/web$//g'` + ROOT_FOLDER=`find /usr /etc /home /root -name 'web' -type d 2>/dev/null| grep 'transmission/web' | sed 's/\/web$//g'` if [ -d "$ROOT_FOLDER/web" ]; then WEB_FOLDER="$ROOT_FOLDER/web"