File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ __gvm_munge_path() {
4848 return 1
4949 fi
5050
51- IFS=' : ' path_in_ary=( $( printf " %s" " ${path_in} " ) ) IFS=" $defaultIFS "
51+ IFS=' : ' path_in_ary=( " $( printf " %s" " ${path_in} " ) " ) IFS=" $defaultIFS "
5252
5353 # extract path elements
5454 local _path
@@ -57,19 +57,19 @@ __gvm_munge_path() {
5757 if [[ " ${_path} " =~ $gvm_regex ]]
5858 then
5959 # echo "matched (gvm): ${_path}"
60- gvm_ary+=(${_path} )
60+ gvm_ary+=(" ${_path} " )
6161 elif [[ " ${_path} " =~ $rvm_regex ]]
6262 then
6363 # echo "matched (rvm): ${_path}"
64- rvm_ary+=(${_path} )
64+ rvm_ary+=(" ${_path} " )
6565 else
66- general_ary+=(${_path} )
66+ general_ary+=(" ${_path} " )
6767 fi
6868 done
6969 unset _path
7070
7171 # assemble path array
72- path_out_ary=( ${rvm_ary[@]} ${gvm_ary[@]} ${general_ary[@]} )
72+ path_out_ary=( " ${rvm_ary[@]} " " ${gvm_ary[@]} " " ${general_ary[@]} " )
7373
7474 # deduplicate path_out_ary if requested, do this just to be helpful :)
7575 if [[ " ${path_dedupe_flag} " == true ]]
@@ -86,7 +86,7 @@ __gvm_munge_path() {
8686 done
8787 unset __element
8888 done
89- path_out_ary=( ${_dedupe_path_out_ary[@]} )
89+ path_out_ary=( " ${_dedupe_path_out_ary[@]} " )
9090 unset _dedupe_path_out_ary
9191 fi
9292
You can’t perform that action at this time.
0 commit comments