use if
This commit is contained in:
parent
f8307b8897
commit
bfbd808f78
@ -71,7 +71,9 @@ prepare_environment()
|
|||||||
|
|
||||||
trap 'panic "something went wrong"' EXIT
|
trap 'panic "something went wrong"' EXIT
|
||||||
|
|
||||||
[ "$modules" ] && modprobe -a "$modules" ||:
|
if [ "$modules" ]; then
|
||||||
|
modprobe -a "$modules"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_cmdline()
|
parse_cmdline()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user