home · contact · privacy
Fix broken arg number test.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 17 Mar 2025 07:08:41 +0000 (08:08 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 17 Mar 2025 07:08:41 +0000 (08:08 +0100)
lintplom

index 9a4799cfde4b6dc9c5aac9e17a7124a88f28dc20..fa6dc60a6520fa70e518d3b3ee69e9652b94af0a 100755 (executable)
--- a/lintplom
+++ b/lintplom
@@ -2,7 +2,7 @@
 set -e
 
 # check existence of file, ensure absoluteness of path
-if [ "$?" -ne 1 ]; then
+if [ "$#" -ne 1 ]; then
     echo "usage: lintplom FILEPATH"
     echo ""
     echo "arguments:"