aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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