From ccc90f87312d437b6a6dc6c0c004c95309aa4064 Mon Sep 17 00:00:00 2001 From: Rajesh Rajendran Date: Fri, 23 Jun 2023 01:03:06 +0200 Subject: [PATCH] cli improvements (#1365) * chore(cli): Adding warn log (#1284) Signed-off-by: rjshrjndrn * Posix compliant path decalaration --------- Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay-cli | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay-cli b/scripts/helmcharts/openreplay-cli index 3cd47405b..9411d6a7b 100755 --- a/scripts/helmcharts/openreplay-cli +++ b/scripts/helmcharts/openreplay-cli @@ -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}"