diff --git a/.gitignore b/.gitignore index 333c1e9..97ee6b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ logs/ +Dockerfile diff --git a/utils/common b/utils/common index 0a4915d..10b2ab6 100755 --- a/utils/common +++ b/utils/common @@ -73,7 +73,7 @@ function notify { local log_out=$(realpath "${0%/*}/.log.1") [[ $# -eq 0 ]] && log "ERROR" "Notify function was called without any arguments. Returning 1." "$log_out" && return 1 [[ ! $# -eq 2 ]] && log "ERROR" "Notify function expected at least 2 arguments, recieved $#. Returning 1." "$log_out" && return 1 - notify-send "$1" "$2" >>"$log_out" 2>&1 ; echo $?) && tput bel + notify-send "$1" "$2" >>"$log_out" 2>&1 && tput bel exit_code=$? [[ ! $exit_code -eq 0 ]] && log "ERROR" "There was an issue send a notification to the system." "$log_out"