V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 43s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 43s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -68,7 +68,7 @@ arg_parser() {
|
||||
|
||||
--renice-priority)
|
||||
if [[ -n ${2} && ${2} =~ ^-?[0-9]+$ && ${2} -ge -19 && ${2} -le 19 ]]; then
|
||||
declare -gix VAR_PRIORITY="${2}"
|
||||
VAR_PRIORITY="${2}"
|
||||
shift 2
|
||||
else
|
||||
arg_mismatch "--renice-priority MUST be an integer between '-19' and '19'."
|
||||
@@ -80,12 +80,12 @@ arg_parser() {
|
||||
arg_mismatch "--reionice-priority no values provided."
|
||||
else
|
||||
if [[ "${2}" =~ ^[1-3]$ ]]; then
|
||||
declare -gix VAR_REIONICE_CLASS="${2}"
|
||||
VAR_REIONICE_CLASS="${2}"
|
||||
if [[ -z "${3}" ]]; then
|
||||
:
|
||||
else
|
||||
if [[ "${3}" =~ ^[0-7]$ ]]; then
|
||||
declare -gix VAR_REIONICE_PRIORITY="${3}"
|
||||
VAR_REIONICE_PRIORITY="${3}"
|
||||
else
|
||||
arg_mismatch "--reionice-priority PRIORITY MUST be an integer between '0' and '7'."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user