Skip to content

Commit 65e9539

Browse files
committed
Added MsgID-Check for integer
1 parent 1fec40e commit 65e9539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ function script_end() { # Params: Optional:EXIT_CODE
583583
}
584584

585585
function printlog() { # Params: LEVEL MSGID MESSAGE
586-
if [ "${#}" -eq 3 ] && declare -F custom_printlog &>/dev/null; then
586+
if [ "${#}" -eq 3 ] && [ "${2}" -eq "${2}" ] &>/dev/null && declare -F custom_printlog &>/dev/null; then
587587
custom_printlog "${1}" "${2}" "${3}" &>/dev/null
588588
return ${?}
589589
fi

0 commit comments

Comments
 (0)