summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2018-10-09 15:49:02 +0200
committertoonn <toonn@toonn.io>2019-06-18 13:26:21 +0200
commitf4d280c6fba8487ddfebb5883a4e126300d1746c (patch)
tree2df4fb9dbdc50a44b03a2f074770a84b9084aac5
parent429003ff268887c39eb73a15aa19dc400c8a11c4 (diff)
downloadranger-f4d280c6fba8487ddfebb5883a4e126300d1746c.tar.gz
Add a section for commands to avoid SC2034 warnings
Shellcheck warns about unused variables, for good reason, but sometimes
you legitimately want to include an unused variable in a script. Rather
than ignore the warning completely I decided to circumvent the warning
through the use of fluff (useless commands that "use" variables).
-rwxr-xr-xranger/data/scope.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 9dad8609..6ff5e3c3 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -274,3 +274,6 @@ handle_mime "${MIMETYPE}"
 handle_fallback
 
 exit 1
+
+## Section for silly commands to avoid "appears unused" warnings
+#echo "${PV_HEIGHT}"