From: Rodrigo Balerdi Date: Sat, 6 Apr 2024 06:18:00 +0000 (-0300) Subject: base-files: minor fix to mmc_get_mac_ascii function X-Git-Tag: v6.1-20240716~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eebbc2ea73edf712674251a5b74d517aac97b68e;p=librecmc%2Flibrecmc.git base-files: minor fix to mmc_get_mac_ascii function This is mostly a cosmetic cleanup. The absence of the return statement was not causing any problems. Signed-off-by: Rodrigo Balerdi (cherry picked from commit 8cf4ac5195476356a14678ae72897e563881b15e) --- diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh index 107e67835a..23484c8ad9 100644 --- a/package/base-files/files/lib/functions/system.sh +++ b/package/base-files/files/lib/functions/system.sh @@ -205,6 +205,7 @@ mmc_get_mac_ascii() { part=$(find_mmc_part "$part_name") if [ -z "$part" ]; then echo "mmc_get_mac_ascii: partition $part_name not found!" >&2 + return fi get_mac_ascii "$part" "$key"