diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-02-01 03:30:41 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-02-01 03:30:41 +0200 |
commit | d5f2aa03b95e4900ec569acefa71702ae0e4dacf (patch) | |
tree | f3cddbef555e0016a7916084a5dbbebbecccd9cc | |
parent | c7876f0de5e40e137c77d265df96a3bb7df85c88 (diff) | |
download | arching-kaos-tools-d5f2aa03b95e4900ec569acefa71702ae0e4dacf.tar.gz arching-kaos-tools-d5f2aa03b95e4900ec569acefa71702ae0e4dacf.tar.bz2 arching-kaos-tools-d5f2aa03b95e4900ec569acefa71702ae0e4dacf.zip |
Don't print new lines
-rw-r--r-- | bin/profile | 6 |
1 files 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 |