From 8c13f3e7732d13d93313ed0cc2999bbaca844fb9 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Thu, 22 Sep 2016 16:06:38 +0200
Subject: [PATCH] Minor improvements

---
 gitlab/functions.sh | 8 ++++----
 gitlab/install.sh   | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index a5c46d1..a282533 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 7ad140f..3cc2f6d 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
-- 
GitLab