From fc41573aac9051439623829cda1228e4d2ceb0c7 Mon Sep 17 00:00:00 2001 From: sose Date: Sat, 26 Jan 2019 17:47:31 -0800 Subject: [PATCH] made locations menu slightly more readable --- openbox_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbox_files.sh b/openbox_files.sh index ffec546..407fbcf 100755 --- a/openbox_files.sh +++ b/openbox_files.sh @@ -33,7 +33,7 @@ get_locations() { location_path="" if printf "%s" "$line" | grep -q "SSHFS Mount " then - location_path=$(printf "%s" "$line" | rev | cut -f 1 -d ' ' | rev) + location_path=$(printf "%s" "$line" | rev | cut -f 1-2 -d ' ' | rev) location_name=$(basename "$location_path") printf "\\n" "$location_name" printf " \\n"