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

@@ -9,7 +9,7 @@ odraw() (
# Setup
f=/sys/kernel/debug/lkmc_memfile
mod="${1:-memfile.ko}"
shift
[ $# -gt 1] && shift
insmod "$mod" "$@"
# Starts off empty