mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Fix SC2181 ("[ $?") outside tests/
Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12042
This commit is contained in:
+1
-3
@@ -120,9 +120,7 @@ load_module_linux() {
|
||||
echo "Loading: $FILE ($VERSION)"
|
||||
fi
|
||||
|
||||
$LDMOD "$KMOD" >/dev/null 2>&1
|
||||
# shellcheck disable=SC2181
|
||||
if [ $? -ne 0 ]; then
|
||||
if ! $LDMOD "$KMOD" >/dev/null 2>&1; then
|
||||
echo "Failed to load $KMOD"
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user