From 861f2b08841e5b8e96ad9f8dc0f85ab73c35b742 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 31 Jan 2022 15:31:35 +0200 Subject: Excluded README file from index --- bin/profile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/bin/profile b/bin/profile index 6b0cde6..f4d4eb4 100755 --- a/bin/profile +++ b/bin/profile @@ -68,7 +68,7 @@ EOF IPFS_FILE=$(ipfs add -q $ZPROPERTY_FILE) echo "Prop writting,,, $IPFS_FILE" # mv $PROFILE_FILE $ZPROFILEDIR/$TO_FILE - sed -e 's,Qm.*,'"$IPFS_FILE"',g' $ZPROFILEDIR/README + # sed -e 's,Qm.*,'"$IPFS_FILE"',g' $ZPROFILEDIR/README add $ZPROPERTY_KEY echo "Adding to git repo..." cd $ZPROFILEDIR @@ -130,14 +130,15 @@ index(){ echo "{" for FILE in $FILES do - if [ $i != "0" ]; then - echo ","; + if [ $FILE != "README" ]; then + if [ $i != "0" ]; then + echo ","; + 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'"'; + let i+=1 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'"' - let i+=1 done echo "}" } -- cgit v1.2.3