From: Siraaj Khandkar Date: Fri, 22 Mar 2019 19:45:44 +0000 (-0400) Subject: Allow early opts break, so per-sensor can be defined X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=753f5ea7a8ab4abac3f0eae09a6311d2484c453b;p=khatus.git Allow early opts break, so per-sensor can be defined --- 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