Prevent the script from returning 1

This commit is contained in:
Jack L. Frost 2014-09-25 22:16:11 +04:00
parent a4286e8b6c
commit de8733b625
1 changed files with 3 additions and 5 deletions

View File

@ -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 "$@"