From 00275314d7744a21a1c07e04937c3522fdd4e5ee Mon Sep 17 00:00:00 2001 From: TheOnePath Date: Tue, 15 Jun 2021 16:47:18 +0100 Subject: [PATCH] Fixed bug Syntax bug in common file. Updated .gitignore to exclude Dockerfile during testing. --- .gitignore | 1 + utils/common | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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"