aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-03 19:22:33 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-03 19:22:33 +0300
commitec34fa3d4c2fd608930bc95c80283a1be2b5bf62 (patch)
tree961164424d60d45a593ff2124eb0270f2f7ca5d0
parent9372f8efb478243e9575972e73b9d419706add97 (diff)
downloadarching-kaos-tools-ec34fa3d4c2fd608930bc95c80283a1be2b5bf62.tar.gz
arching-kaos-tools-ec34fa3d4c2fd608930bc95c80283a1be2b5bf62.tar.bz2
arching-kaos-tools-ec34fa3d4c2fd608930bc95c80283a1be2b5bf62.zip
Removed git integration
-rwxr-xr-xbin/ak-reference13
1 files changed, 2 insertions, 11 deletions
diff --git a/bin/ak-reference b/bin/ak-reference
index d277aa0..e820076 100755
--- a/bin/ak-reference
+++ b/bin/ak-reference
@@ -5,12 +5,7 @@ echo $ZREFERENCESDIR
if [ ! -d $ZREFERENCESDIR ]; then
mkdir $ZREFERENCESDIR
cd $ZREFERENCESDIR
- git init
- echo "References repository" > README
- echo "Qmetc" >> README
- git add README
- git commit -m "Initiated references repository"
- echo "zreferencesdir created along with git repo"
+ echo "zreferencesdir created"
else
ak-logthis "zreferencesdir found"
fi
@@ -39,11 +34,7 @@ EOF
IPFS_FILE=$(ak-ipfs-add $ZREFERENCESDIR/$TO_FILE)
sed -e 's,Qm.*,'"$IPFS_FILE"',g' $ZREFERENCESDIR/README
add $ZREFERENCESDIR/$TO_FILE
- echo "Adding to git repo..."
cd $ZREFERENCESDIR
- git add $TO_FILE README
- git commit -m "Added $TO_FILE with $(head -n 1 $ZREFERENCESDIR/$TO_FILE)"
- git clean --force
}
index(){
FILES="$(ls -1 $ZREFERENCESDIR)"
@@ -58,7 +49,7 @@ index(){
done
}
title(){
- echo ak-references-cli
+ echo ak-references-cli
echo "--------------"
}
import(){