Fix shift blowup without arguments

This commit is contained in:
Ciro Santilli
2025-05-01 12:28:16 +01:00
parent ea7275d35b
commit c3a6c7e85b
5 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ set -e
# Setup
f=/sys/kernel/debug/lkmc_fops
mod="${1:-fops.ko}"
shift
[ $# -gt 1] && shift
insmod "$mod" "$@"
# read