Fixed bug

Syntax bug in common file.
Updated .gitignore to exclude Dockerfile during testing.
This commit is contained in:
Ethan Smith-Coss 2021-06-15 16:47:18 +01:00
parent 11a90f8f92
commit 00275314d7
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
logs/
Dockerfile

View File

@ -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"