Fix processing of files with spaces in their names
This commit is contained in:
parent
5f004461c9
commit
ccfb2896f2
4
extr
4
extr
@ -48,7 +48,7 @@ function extr_register_module(){
|
||||
function extr_register_extensions(){
|
||||
extr_is_module_registered "$1" || return 1
|
||||
|
||||
eval export "EXTR_EXTENSIONS_$1"='$'"2"
|
||||
eval export "EXTR_EXTENSIONS_$1"='"$'"2"'"'
|
||||
}
|
||||
function regex_match(){
|
||||
local haystack="$1"
|
||||
@ -148,7 +148,7 @@ function fatal_error(){
|
||||
function do_file_extension(){
|
||||
local file="$1"
|
||||
for module in "${EXTR_LOADED_MODULES[@]}";do
|
||||
eval regex_match "$file" '$'"EXTR_EXTENSIONS_$module"
|
||||
eval regex_match "\"$file\"" '"$'"EXTR_EXTENSIONS_$module"'"'
|
||||
if [ $? -eq 0 ];then
|
||||
eval "do_$module"
|
||||
retval=$?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user