Browse Source

added hours to log

Skylsmoi 5 years ago
parent
commit
791d8b24f7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bash_library.sh

+ 2 - 1
bash_library.sh View File

@@ -1,8 +1,9 @@
1 1
 #!/bin/bash
2 2
 
3
+YELLOW='\033[1;33m'
3 4
 BROWN='\033[0;33m'
4 5
 NC='\033[0m' # No Color
5 6
 
6 7
 function log {
7
-    echo -e "\n${BROWN}>> $ $1${NC}\n"
8
+    echo -e "\n${YELLOW}[$(date +'%H:%M:%S')]${BROWN} >> $ $1${NC}\n"
8 9
 }