tools/run_guest_kernel.sh: Support --

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2022-10-15 21:27:11 +09:00 committed by Hector Martin
parent d6d72b6398
commit 3e36d18241

View file

@ -20,7 +20,9 @@ args="$2"
initramfs=""
shift 2
if [ -n "$1" ]; then
if [ "$1" == "--" ]; then
shift
elif [ -n "$1" ]; then
initramfs="$(realpath "$1")"
shift
fi