1
0
Quellcode durchsuchen

vbladed: check for 4 or more arguments rather than exactly 4, so that -m switches are now accepted.

David Martínez Moreno vor 17 Jahren
Ursprung
Commit
37fea4e11f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      vbladed

+ 1 - 1
vbladed

@@ -7,7 +7,7 @@
 # protect ourselves against the most common way or
 # calling vbladed: without arguments.  While at it, we guard
 # ourselves against wrong number of parameters.
-if [ $# -ne 4 ]
+if [ $# -lt 4 ]
 then
     echo "usage: ./vblade <shelf> <slot> <ethn> <device>" >&2
     exit 1