Make installer more path-with-spaces-proof, fixes #952

NOTE: This doesn't make Bash-it usable as there's so many similar errors scattered in other locations, this commit simply makes installer works

Signed-off-by: 林博仁 <Buo.Ren.Lin@gmail.com>
pull/954/head
林博仁 2017-05-02 10:54:50 +08:00
parent e275c62767
commit 63c4ace648
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function load_one() {
function load_some() { function load_some() {
file_type=$1 file_type=$1
[ -d "$BASH_IT/$file_type/enabled" ] || mkdir "$BASH_IT/$file_type/enabled" [ -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 do
file_name=$(basename "$path") file_name=$(basename "$path")
while true while true