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:
Rajesh Rajendran 2023-06-23 01:03:06 +02:00 committed by GitHub
parent f667d9e68c
commit ccc90f8731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}"