cli improvements (#1365)
* chore(cli): Adding warn log (#1284) Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com> * Posix compliant path decalaration --------- Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
f667d9e68c
commit
ccc90f8731
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# vim: set ft=sh:
|
||||
|
||||
OR_DIR="/var/lib/openreplay"
|
||||
|
|
@ -56,6 +56,11 @@ function log () {
|
|||
echo -e "${GREEN}[INFO]" "$@" "${NC}"
|
||||
return
|
||||
;;
|
||||
warn)
|
||||
shift
|
||||
echo -e "${YELLOW}[WARN]" "$@" "${NC}"
|
||||
return
|
||||
;;
|
||||
debug)
|
||||
shift
|
||||
echo -e "${YELLOW}[DEBUG]" "$@" "${NC}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue