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 -eux
name=scull
mod="${1:-$name.ko}"
shift
[ $# -gt 1] && shift
insmod "$mod" "$@"
major="$(awk "\$2==\"$name\" {print \$1}" /proc/devices)"