From c526b417295c12b21f7c7eb909abab9f2b5661fc Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 9 Jan 2025 15:01:33 +0100 Subject: [PATCH] run_sdk_container: Bail out on unknown flags The script would pass unknown flags further as a container command. This normally is not desired, but in case it actually is, the user can use the newly added `--` parameter to stop parameter handling and pass the following parameters as the container command. I was tripped by using -u instead of -U and I got a rather confusing error message suggesting something going wrong inside the container. --- run_sdk_container | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run_sdk_container b/run_sdk_container index 6cb9213a21..36ad60a19b 100755 --- a/run_sdk_container +++ b/run_sdk_container @@ -22,7 +22,7 @@ mounts=() usage() { echo " Usage:" - echo " $0 [-t] [-v ] [-V ] [-a ] [-n ] [-x