From d2be920ecf16a537026ce4fd79e4d4994964b6c3 Mon Sep 17 00:00:00 2001 From: toonn Date: Fri, 7 Jun 2019 19:54:51 +0200 Subject: Replace fluff command with shellcheck directive Hid an `echo $VAR` in a comment to get rid of the unused variable warning, that's now been replaced with a shellcheck directives suited to the purpose. --- ranger/data/scope.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 6217af70..e211b50b 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -30,6 +30,7 @@ IFS=$'\n' ## Script arguments FILE_PATH="${1}" # Full path of the highlighted file PV_WIDTH="${2}" # Width of the preview pane (number of fitting characters) +## shellcheck disable=SC2034 # PV_HEIGHT is provided for convenience and unused PV_HEIGHT="${3}" # Height of the preview pane (number of fitting characters) IMAGE_CACHE_PATH="${4}" # Full path that should be used to cache image preview PV_IMAGE_ENABLED="${5}" # 'True' if image previews are enabled, 'False' otherwise. @@ -278,6 +279,3 @@ handle_mime "${MIMETYPE}" handle_fallback exit 1 - -## Section for silly commands to avoid "appears unused" warnings -#echo "${PV_HEIGHT}" -- cgit 1.4.1-2-gfad0