This commit is contained in:
Philipp Hemmelmayr 2019-01-28 20:20:13 +01:00 committed by GitHub
parent 078960f2ca
commit 839a3746d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,8 +104,8 @@ rec_get_random() {
user_input="$dir" user_input="$dir"
return return
fi fi
dir=($dir/*) dir=("$dir"/*)
dir=${dir[RANDOM % ${#dir[@]}]} dir="${dir[RANDOM % ${#dir[@]}]}"
rec_get_random "$dir" rec_get_random "$dir"
} }