Skip to content

Commit afb7b22

Browse files
typo
1 parent 68e8dba commit afb7b22

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

documentation/bmtLinux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ second option is message, third option is file name .log is appended i.e mylog b
4444
Fourth option is path to file.
4545

4646
```sh
47-
bmtLinuxFunx log "CRITICAL" "1201 alarm Executive overflow - no vacant areas" mylog /tmp/
48-
bmtLinuxFunx log "CRITICAL" "1202 alarm Executive overflow - no core sets" mylog /tmp/
47+
bmtLinuxFunc log "CRITICAL" "1201 alarm Executive overflow - no vacant areas" mylog /tmp/
48+
bmtLinuxFunc log "CRITICAL" "1202 alarm Executive overflow - no core sets" mylog /tmp/
4949
```

lib/bmtLinux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ case "$1" in
104104
*) printf '%s\n' "Error bmtLinux : log : Invalid state : $statusVar"
105105
return 55 ;;
106106
esac
107-
if [ -n logmsgVar ]
107+
if [ -n "$logmsgVar" ]
108108
then
109109
logstrVar="$dateVar - $statusVar - $logmsgVar"
110110
else

lib/bmtMisc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ case "$1" in
4343
fi
4444
;;
4545
# 3 Displays the current timestamp
46-
now) echo "$(date +%s%N)" ;;
46+
now) date +%s%N ;;
4747

4848
# 4 Displays the time elapsed between two times
4949
elapsed)
@@ -62,7 +62,7 @@ case "$1" in
6262

6363
# 6 Stops the timer
6464
stopWatch)
65-
if [ -n __BMT_START_WATCH ]
65+
if [ -n "$__BMT_START_WATCH" ]
6666
then
6767
local stopWatchVar=0
6868
stopWatchVar=$(bmtMiscFunc now)

0 commit comments

Comments
 (0)