aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Fenoll <[email protected]>2017-12-14 19:42:43 +0100
committerPierre Fenoll <[email protected]>2018-03-14 11:42:35 +0100
commit0b2f4e6a6209a7b74654378bfc6642bc2a8e0ea9 (patch)
tree4407792f20183bd321b3d3db981eb341c843366d
parent1862f8e631fa0bd03ffea10bf6f18ee07f1db178 (diff)
downloadkerl-0b2f4e6a6209a7b74654378bfc6642bc2a8e0ea9.tar.gz
kerl-0b2f4e6a6209a7b74654378bfc6642bc2a8e0ea9.tar.bz2
kerl-0b2f4e6a6209a7b74654378bfc6642bc2a8e0ea9.zip
shellcheck: looks like this cannot be compared as integers
-rwxr-xr-xkerl2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerl b/kerl
index 19cbd6e..7774dc0 100755
--- a/kerl
+++ b/kerl
@@ -1434,7 +1434,7 @@ maybe_remove() {
list_print() {
if [ -f "$KERL_BASE_DIR/otp_$1" ]; then
- if [ "$(wc -l "$KERL_BASE_DIR/otp_$1")" -ne 0 ]; then
+ if [ "$(wc -l "$KERL_BASE_DIR/otp_$1")" != '0' ]; then
if [ -z "$2" ]; then
cat "$KERL_BASE_DIR/otp_$1"
else