aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-02-01 03:30:41 +0200
committerkaotisk <kaotisk@arching-kaos.org>2023-02-01 03:30:41 +0200
commitd5f2aa03b95e4900ec569acefa71702ae0e4dacf (patch)
treef3cddbef555e0016a7916084a5dbbebbecccd9cc /bin
parentc7876f0de5e40e137c77d265df96a3bb7df85c88 (diff)
downloadarching-kaos-tools-d5f2aa03b95e4900ec569acefa71702ae0e4dacf.tar.gz
arching-kaos-tools-d5f2aa03b95e4900ec569acefa71702ae0e4dacf.tar.bz2
arching-kaos-tools-d5f2aa03b95e4900ec569acefa71702ae0e4dacf.zip
Don't print new lines
Diffstat (limited to 'bin')
-rw-r--r--bin/profile6
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