aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-repositories
diff options
context:
space:
mode:
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