Several functions as hours_until return an integer. To get the result the function has to be called from a sub shell
VARIABLE=$( hours_until "${param}" )
In this way all the error handling calls inside the function with an exit do not have the desired effect. The sub shell is terminated but the script continues.
The computed value shroud be stored in a variable:
Describe the bug
Several functions as hours_until return an integer. To get the result the function has to be called from a sub shell
VARIABLE=$( hours_until "${param}" )
In this way all the error handling calls inside the function with an exit do not have the desired effect. The sub shell is terminated but the script continues.
The computed value shroud be stored in a variable:
hours_until "${param}" VARIABLE="${HOURS_UNTIL}"