aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-repositories
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-04-03 05:15:00 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-04-03 05:15:00 +0300
commitfc91066907e4d16a951c8d72d23aa610945f5407 (patch)
tree8d66ab33ae012ba185810b7462cd58687b6be38b /bin/ak-repositories
parentad7d6281475c4adb67e0a43017803aeb4a9059ce (diff)
downloadarching-kaos-tools-fc91066907e4d16a951c8d72d23aa610945f5407.tar.gz
arching-kaos-tools-fc91066907e4d16a951c8d72d23aa610945f5407.tar.bz2
arching-kaos-tools-fc91066907e4d16a951c8d72d23aa610945f5407.zip
Clean up, elimination of duplicate tempassins, fixed current directory problems, introduced new tool
Diffstat (limited to 'bin/ak-repositories')
-rwxr-xr-xbin/ak-repositories9
1 files changed, 2 insertions, 7 deletions
diff --git a/bin/ak-repositories b/bin/ak-repositories
index 7d3bf5a..132d758 100755
--- a/bin/ak-repositories
+++ b/bin/ak-repositories
@@ -106,13 +106,8 @@ add(){
if [ $? == 0 ]
then
ak-ipfs-name-publish --key="$PROJECT.git" /ipfs/$IPFS
- cat > data <<EOF
-{
- "project":"$PROJECT.git",
- "ipns":"$try"
-}
-EOF
- ak-pack_z_block "repos/add" data
+ printf '{"project":"%s.git","ipns":"%s"}' $PROJECT $try > data
+ ak-pack_z_block "repos/add" $PWD/data
echo "Done"
fi
fi