From fa0965c43e4422af9e64bf2c9e01cfdcebed3030 Mon Sep 17 00:00:00 2001 From: tb14 Date: Mon, 27 Jan 2025 00:42:47 -0600 Subject: [PATCH] moved sed command --- AmRRON-PAT-GUI.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AmRRON-PAT-GUI.sh b/AmRRON-PAT-GUI.sh index e638bd5..a27794b 100755 --- a/AmRRON-PAT-GUI.sh +++ b/AmRRON-PAT-GUI.sh @@ -414,12 +414,10 @@ CURRENT=$(cat /tmp/currentaliases | yad --image=$DIR/images/corps-icon.png --cen rc=$? +if [[ $rc -eq 0 ]]; then sed -i 's/TRUE,//g' /tmp/removealiases awk -F ":" '{print $1}' /tmp/removealiases > /tmp/removealiases2 -if [[ $rc -eq 0 ]]; then - -sed -i while read file; do jq 'del(.connect_aliases.'$file')' $PATCONFIG > $TMPFILE