We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fba59f9 + b93937f commit 5ddcfdbCopy full SHA for 5ddcfdb
src/validators/ethernet-interface
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
3
-if [[ "$1" != ^(lan|eth|eno|ens|enp|enx)[0-9]+$ ]]; then
+if ! [[ "$1" =~ ^(lan|eth|eno|ens|enp|enx)[0-9]+$ ]]; then
4
echo "Error: $1 is not an ethernet interface"
5
exit 1
6
fi
0 commit comments