From d5f2aa03b95e4900ec569acefa71702ae0e4dacf Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 1 Feb 2023 03:30:41 +0200 Subject: Don't print new lines --- bin/profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/profile b/bin/profile index 59be969..379b697 100644 --- a/bin/profile +++ b/bin/profile @@ -123,16 +123,16 @@ propset(){ index(){ FILES="$(ls -1 $ZPROFILEDIR)" i=0 - echo "{" + echo -n "{" for FILE in $FILES do if [ $FILE != "README" ]; then if [ $i != "0" ]; then - echo ","; + echo -n ","; fi PROP=$(echo $(cat $ZPROFILEDIR/$FILE | json2bash) | cut -d '=' -f 1 | awk '{print $0}') VAL=$(echo $(cat $ZPROFILEDIR/$FILE | json2bash) | cut -d '=' -f 2 | awk '{print $1}') - echo '"'$PROP'":"'$VAL'"'; + echo -n '"'$PROP'":"'$VAL'"'; let i+=1 fi done -- cgit v1.2.3