Skip to content

Commit 5ddcfdb

Browse files
authored
Merge pull request #4345 from natali-rs1985/T7076-fix
T7076: Fix for script that validates ethernet interface
2 parents fba59f9 + b93937f commit 5ddcfdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validators/ethernet-interface

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
if [[ "$1" != ^(lan|eth|eno|ens|enp|enx)[0-9]+$ ]]; then
3+
if ! [[ "$1" =~ ^(lan|eth|eno|ens|enp|enx)[0-9]+$ ]]; then
44
echo "Error: $1 is not an ethernet interface"
55
exit 1
66
fi

0 commit comments

Comments
 (0)