diff options
author | toonn <toonn@toonn.io> | 2019-06-07 19:54:51 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-06-18 13:26:21 +0200 |
commit | d2be920ecf16a537026ce4fd79e4d4994964b6c3 (patch) | |
tree | 0ddf4de8958b62b553cd842c156912bad385df96 /ranger | |
parent | 2f7b54d06ae351171a2f60c916015a1e9f417911 (diff) | |
download | ranger-d2be920ecf16a537026ce4fd79e4d4994964b6c3.tar.gz |
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.
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/data/scope.sh | 4 |
1 files changed, 1 insertions, 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}" |