network_interfaces: Remove useless 'break' command from case statement
'break' is pointless in a case statement. This fixes the following warning: "break: only meaningful in a `for', `while', or `until' loop" Change-Id: Id8dbb96f1a918a378c3ac16862c3bd4fea3c94d3
This commit is contained in:
parent
aaa6825c14
commit
e8b9340567
@ -16,8 +16,8 @@
|
||||
source /etc/os-release || source /usr/lib/os-release
|
||||
|
||||
case "${ID}" in
|
||||
*suse*) INTERFACE="${1}"; break ;;
|
||||
centos|rhel|fedora) INTERFACE="${DEVICE}"; break ;;
|
||||
*suse*) INTERFACE="${1}"; ;;
|
||||
centos|rhel|fedora) INTERFACE="${DEVICE}"; ;;
|
||||
*) echo "Unsupported distribution ${ID}"; exit 1;
|
||||
esac
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
||||
source /etc/os-release || source /usr/lib/os-release
|
||||
|
||||
case "${ID}" in
|
||||
*suse*) INTERFACE="${1}"; break ;;
|
||||
centos|rhel|fedora) INTERFACE="${DEVICE}"; break ;;
|
||||
*suse*) INTERFACE="${1}"; ;;
|
||||
centos|rhel|fedora) INTERFACE="${DEVICE}"; ;;
|
||||
*) echo "Unsupported distribution ${ID}"; exit 1;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user