Fixed bug
Syntax bug in common file. Updated .gitignore to exclude Dockerfile during testing.
This commit is contained in:
parent
11a90f8f92
commit
00275314d7
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
logs/
|
||||
Dockerfile
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user