From 753f5ea7a8ab4abac3f0eae09a6311d2484c453b Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Fri, 22 Mar 2019 15:45:44 -0400 Subject: [PATCH] Allow early opts break, so per-sensor can be defined --- x4/bin/khatus_x4_lib_common_sensor.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x4/bin/khatus_x4_lib_common_sensor.sh b/x4/bin/khatus_x4_lib_common_sensor.sh index 8dd5737..afb4cdb 100755 --- a/x4/bin/khatus_x4_lib_common_sensor.sh +++ b/x4/bin/khatus_x4_lib_common_sensor.sh @@ -32,6 +32,9 @@ set_common_options() { interval="$2" shift 2 esac + ;; --) + shift 1 + break ;; *) shift 1 esac -- 2.20.1