From 9e25e3b96b4adfd8f1af5792acd9df8509827521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Wi=C3=9Fmann?= Date: Thu, 17 Sep 2015 10:24:23 +0200 Subject: [PATCH] open_download: Allow download dir to be a symlink --- misc/userscripts/open_download | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/userscripts/open_download b/misc/userscripts/open_download index 7962b59bf..4bd22455e 100755 --- a/misc/userscripts/open_download +++ b/misc/userscripts/open_download @@ -71,7 +71,9 @@ crop-first-column() { } ls-files() { - ls -Q --quoting-style escape -h -o -1 -A -t "${DOWNLOAD_DIR}" \ + # add the slash at the end of the download dir enforces to follow the + # symlink, if the DOWNLOAD_DIR itself is a symlink + ls -Q --quoting-style escape -h -o -1 -A -t "${DOWNLOAD_DIR}/" \ | grep '^[-]' \ | cut -d' ' -f3- \ | sed 's,^\(.*[^\]\) \(.*\)$,\2\t\1,' \