From 2a8c9645832a54ae5195024aca8e8ea850bfc2f1 Mon Sep 17 00:00:00 2001 From: heavybullets8 Date: Tue, 1 Nov 2022 18:55:53 -0600 Subject: [PATCH] match app name until comma in mount --- functions/mount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/mount.sh b/functions/mount.sh index 8615a2b5..7badfc58 100644 --- a/functions/mount.sh +++ b/functions/mount.sh @@ -40,7 +40,7 @@ do pvc=$(echo -e "$list" | grep ^"$selection)") #Stop applicaiton if not stopped - status=$(cli -m csv -c 'app chart_release query name,status' | grep -E "^$app\b" | awk -F ',' '{print $2}'| tr -d " \t\n\r") + status=$(cli -m csv -c 'app chart_release query name,status' | grep "^$app," | awk -F ',' '{print $2}'| tr -d " \t\n\r") if [[ "$status" != "STOPPED" ]]; then echo -e "\nStopping $app prior to mount" if ! cli -c 'app chart_release scale release_name='\""$app"\"\ 'scale_options={"replica_count": 0}' &> /dev/null; then