Merge pull request #954 from Lin-Buo-Ren/fix-issue-952-space-proof

Make installer more path-with-spaces-proof, fixes #952
pull/548/merge
Nils Winkler 2017-05-08 09:09:12 +02:00 committed by GitHub
commit a430eb09c7
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function load_one() {
function load_some() {
file_type=$1
[ -d "$BASH_IT/$file_type/enabled" ] || mkdir "$BASH_IT/$file_type/enabled"
for path in `ls $BASH_IT/${file_type}/available/[^_]*`
for path in "$BASH_IT/${file_type}/available/"[^_]*
do
file_name=$(basename "$path")
while true