fix: fix error exit on failure

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2023-04-18 19:35:30 +02:00
parent 4124e65ec4
commit a07e42a1ac
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639
12 changed files with 12 additions and 14 deletions

@ -14,10 +14,8 @@
# shellcheck enable=require-variable-braces # shellcheck enable=require-variable-braces
# Exit upon Errors # Exit upon Errors
set -Eeou set -Ee
CN_DEBUG_ERR_EXIT=""
export CN_DEBUG_ERR_EXIT
# 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 -Eeou set -Ee
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 -Eeou set -Ee
# 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 -Eeou set -Ee
## 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 -Eeou set -Ee
### 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 -Eeou set -Ee
## 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 -Eeou set -Ee
## 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 -Eeou set -Ee
## 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 -Eeou set -Ee
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 -Eeou set -Ee
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 -Eeou set -Ee
versioncontrol() { versioncontrol() {

@ -14,7 +14,7 @@
# shellcheck enable=require-variable-braces # shellcheck enable=require-variable-braces
# Exit upon Errors # Exit upon Errors
set -Eeou set -Ee
#### Watchdog Functions and Variables #### Watchdog Functions and Variables
## Do not reuse functions from other libs/scripts! ## Do not reuse functions from other libs/scripts!