From 839a3746d2d4c0d63664c57ee571626c361cad8a Mon Sep 17 00:00:00 2001 From: Philipp Hemmelmayr Date: Mon, 28 Jan 2019 20:20:13 +0100 Subject: [PATCH] fixed #93 --- betterlockscreen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/betterlockscreen b/betterlockscreen index 718a311..2430cf8 100755 --- a/betterlockscreen +++ b/betterlockscreen @@ -104,8 +104,8 @@ rec_get_random() { user_input="$dir" return fi - dir=($dir/*) - dir=${dir[RANDOM % ${#dir[@]}]} + dir=("$dir"/*) + dir="${dir[RANDOM % ${#dir[@]}]}" rec_get_random "$dir" }