fix: fix error not exiting script on error
Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
parent
e3bd2e2e57
commit
42ce0ba297
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
# Base Path
|
# Base Path
|
||||||
BASE_CN_PATH="$(dirname "$(readlink -f "${0}")")"
|
BASE_CN_PATH="$(dirname "$(readlink -f "${0}")")"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
function run_multi() {
|
function run_multi() {
|
||||||
local cams
|
local cams
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
# Read Configuration File
|
# Read Configuration File
|
||||||
# call get_param section param
|
# call get_param section param
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
## Version of crowsnest
|
## Version of crowsnest
|
||||||
function self_version {
|
function self_version {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
### Detect Hardware
|
### Detect Hardware
|
||||||
detect_avail_cams() {
|
detect_avail_cams() {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
## Start Stream Service
|
## Start Stream Service
|
||||||
# sleep to prevent cpu cycle spikes
|
# sleep to prevent cpu cycle spikes
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
## Logging
|
## Logging
|
||||||
function set_log_path {
|
function set_log_path {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
## Message Helpers
|
## Message Helpers
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
run_mjpg() {
|
run_mjpg() {
|
||||||
local cams
|
local cams
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -eE
|
set -Eeou
|
||||||
|
|
||||||
function v4l2_control {
|
function v4l2_control {
|
||||||
v4c_log_msg() {
|
v4c_log_msg() {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
versioncontrol() {
|
versioncontrol() {
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# shellcheck enable=require-variable-braces
|
# shellcheck enable=require-variable-braces
|
||||||
|
|
||||||
# Exit upon Errors
|
# Exit upon Errors
|
||||||
set -Ee
|
set -Eeou
|
||||||
|
|
||||||
#### Watchdog Functions and Variables
|
#### Watchdog Functions and Variables
|
||||||
## Do not reuse functions from other libs/scripts!
|
## Do not reuse functions from other libs/scripts!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user