From 2f6046e6daa9f0391f88d9ffab4aed326814c087 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 21 Mar 2021 19:33:43 +0530 Subject: [PATCH] Use short options --- plugins/nuke | 2 +- plugins/preview-tabbed | 2 +- plugins/preview-tui | 4 ++-- plugins/preview-tui-ext | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/nuke b/plugins/nuke index 82869707..8a2665f7 100755 --- a/plugins/nuke +++ b/plugins/nuke @@ -510,7 +510,7 @@ handle_blocked() { esac } -MIMETYPE="$( file --dereference --brief --mime-type -- "${FPATH}" )" +MIMETYPE="$( file -bL --mime-type -- "${FPATH}" )" handle_extension handle_multimedia "${MIMETYPE}" handle_mime "${MIMETYPE}" diff --git a/plugins/preview-tabbed b/plugins/preview-tabbed index 5caccb50..43cb40bb 100755 --- a/plugins/preview-tabbed +++ b/plugins/preview-tabbed @@ -138,7 +138,7 @@ previewer_loop () { kill_viewer - MIME="$(file -b --mime-type "$FILE")" + MIME="$(file -bL --mime-type "$FILE")" case "$MIME" in video/*) diff --git a/plugins/preview-tui b/plugins/preview-tui index f90cf6f8..51eb0df2 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -137,8 +137,8 @@ preview_file () { # Detecting the exact type of the file: the encoding, mime type, and # extension in lowercase. - encoding="$(file -Lb --mime-encoding -- "$1")" - mimetype="$(file -Lb --mime-type -- "$1")" + encoding="$(file -bL --mime-encoding -- "$1")" + mimetype="$(file -bL --mime-type -- "$1")" ext="${1##*.}" if [ -n "$ext" ]; then ext="$(printf "%s" "${ext}" | tr '[:upper:]' '[:lower:]')" diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext index b946762f..f49599d7 100755 --- a/plugins/preview-tui-ext +++ b/plugins/preview-tui-ext @@ -148,8 +148,8 @@ preview_file () { # Detecting the exact type of the file: the encoding, mime type, and # extension in lowercase. - encoding="$(file -Lb --mime-encoding -- "$1")" - mimetype="$(file -Lb --mime-type -- "$1")" + encoding="$(file -bL --mime-encoding -- "$1")" + mimetype="$(file -bL --mime-type -- "$1")" ext="${1##*.}" if [ -n "$ext" ]; then ext="$(printf "%s" "${ext}" | tr '[:upper:]' '[:lower:]')"