summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions3
1 files changed, 1 insertions, 2 deletions
diff --git a/functions b/functions
index a10221f..8c44e43 100644
--- a/functions
+++ b/functions
@@ -227,8 +227,7 @@ auto_modules() {
xargs -d $'\n' modprobe -d "$MODULEROOT" -qaRS "$KERNELVERSION" |
sort -u)
- printf "%s\n" "${mods[@]//-/_}"
- (( ${#mods[*]} ))
+ (( ${#mods[*]} )) && printf "%s\n" "${mods[@]//-/_}"
}
all_modules() {