Prevent the script from returning 1
This commit is contained in:
parent
a4286e8b6c
commit
de8733b625
8
sx-open
8
sx-open
|
@ -23,8 +23,6 @@ handle_uri() {
|
|||
handle_fs_target() {
|
||||
local target="${1##*file://}"
|
||||
|
||||
[[ -e "$target" ]] || return 1
|
||||
|
||||
target_mimetype=$(file -ib "$target")
|
||||
|
||||
for m in "${!mime_handlers[@]}"; do
|
||||
|
@ -47,9 +45,9 @@ main() {
|
|||
handle_uri "$target"
|
||||
fi
|
||||
|
||||
[[ "$?" -gt 0 ]] && {
|
||||
echo "No handlers found for $target"
|
||||
}
|
||||
[[ "$?" -gt 0 ]] && { echo "No handlers found for $target"; }
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
Loading…
Reference in New Issue
Block a user