[bin] Fix quoting issue in xdg-open
This commit is contained in:
parent
6e4d81c6b6
commit
533c23d470
|
@ -8,7 +8,7 @@ url_regex='^(https?|mailto|ftp|file):/?/?.*'
|
||||||
if [[ $argument =~ $url_regex ]]; then
|
if [[ $argument =~ $url_regex ]]; then
|
||||||
match=$argument
|
match=$argument
|
||||||
else
|
else
|
||||||
match=$(file -b --mime-type $*)
|
match=$(file -b --mime-type "${*}")
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
echo "Searching for ${match} in handlers"
|
echo "Searching for ${match} in handlers"
|
||||||
|
|
Loading…
Reference in New Issue