aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2022-01-31 15:31:35 +0200
committerkaotisk <kaotisk@arching-kaos.com>2022-01-31 15:31:35 +0200
commit861f2b08841e5b8e96ad9f8dc0f85ab73c35b742 (patch)
tree777013e45ebbdeb5c34fdd7ae07ee047a82ce3e7
parent95ffb10421341080bec6529c06b5e7fa2c23979d (diff)
downloadarching-kaos-tools-861f2b08841e5b8e96ad9f8dc0f85ab73c35b742.tar.gz
arching-kaos-tools-861f2b08841e5b8e96ad9f8dc0f85ab73c35b742.tar.bz2
arching-kaos-tools-861f2b08841e5b8e96ad9f8dc0f85ab73c35b742.zip
Excluded README file from index
-rwxr-xr-xbin/profile17
1 files 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 "}"
}