fail explicitly here

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-28 04:51:21 +00:00
parent da723383d5
commit c34156bb1d
+5
View File
@@ -118,6 +118,11 @@ handle_target() {
[[ "$target" =~ ^/.* ]] || { target="${PWD}/${target}"; } # Turn relative paths to absolute ones.
IFS=';' read target_mimetype _ <<< $( file -ib "$target" )
(( $? )) && {
error "Failed to get mimetype, bailing"
return 1
}
target_left=$target_mimetype
[[ $target_mimetype == 'inode/symlink' ]] && \