diff --git a/gitlab/functions.sh b/gitlab/functions.sh index a5c46d1d27f74a3a49937e1c6fe40bc2d85de3cf..a282533847de891f0791577bc8361b492aadfa88 100644 --- a/gitlab/functions.sh +++ b/gitlab/functions.sh @@ -11,17 +11,17 @@ arch() { # Functions for coloring echo commands log_info() { - echo -e "\033[1;32m[(`date +%c`)]${@}\033[0m" + echo -e "\033[1;32m[`date +%c`] ${@}\033[0m" } log_warn() { - echo -e "\033[1;33m[(`date +%c`)]${@}\033[0m" + echo -e "\033[1;33m[`date +%c`] ${@}\033[0m" } log_error() { - echo -e "\033[1;31m[(`date +%c`)]${@}\033[0m" + echo -e "\033[1;31m[`date +%c`] ${@}\033[0m" } @@ -38,7 +38,7 @@ check_env() { # Function for running command and echoing results run_cmd() { - log_info "Running \"${@}\"..." + log_info "$ ${@}" ${@} local status=$? if [ ${status} != 0 ]; then diff --git a/gitlab/install.sh b/gitlab/install.sh index 7ad140f419c5b58100d499d1bb05728bdd50c77e..3cc2f6dbe40de765fe8f9e913c1fedcfd936a174 100755 --- a/gitlab/install.sh +++ b/gitlab/install.sh @@ -11,16 +11,16 @@ fi # Functions for coloring echo commands log_info() { - echo -e "\033[1;32m[(`date +%c`)]${@}\033[0m" + echo -e "\033[1;32m[`date +%c`] ${@}\033[0m" } log_error() { - echo -e "\033[1;31m[(`date +%c`)]${@}\033[0m" + echo -e "\033[1;31m[`date +%c`] ${@}\033[0m" } # Function for running command and echoing results run_cmd() { - log_info "Running \"${@}\"..." + log_info "$ ${@}" ${@} local status=$? if [ ${status} != 0 ]; then