From 4f8fb0a8acd5eec0caaf1087d7ecf91f9166c807 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 3 Apr 2023 00:26:07 +0300 Subject: Clean up and adjustment --- bin/ak-file.c | 27 --------------------------- bin/ak-ipfs-add | 2 +- bin/ak-ipfs-block-stat | 2 +- bin/ak-ipfs-cat | 1 + bin/ak-ipfs-files-cp | 2 +- bin/ak-ipfs-files-ls | 2 +- bin/ak-ipfs-files-mkdir | 2 +- bin/ak-ipfs-files-mv | 3 +++ bin/ak-ipfs-files-rm | 2 +- bin/ak-ipfs-files-stat | 2 +- bin/ak-ipfs-get | 3 +-- bin/ak-ipfs-key-list | 1 + bin/ak-ipfs-name-publish | 2 +- bin/ak-ipfs-name-resolve | 2 +- bin/ak-ipfs-swarm-peers | 1 + 15 files changed, 16 insertions(+), 38 deletions(-) delete mode 100644 bin/ak-file.c (limited to 'bin') diff --git a/bin/ak-file.c b/bin/ak-file.c deleted file mode 100644 index 3d2ae17..0000000 --- a/bin/ak-file.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * ===================================================================================== - * - * Filename: file.c - * - * Description: - * - * Version: 1.0 - * Created: 08/12/22 07:23:49 - * Revision: none - * Compiler: gcc - * - * Author: Kaotisk Hund (kh), kaotisk@arching-kaos.org - * Company: ArchingKaos.Com - * - * ===================================================================================== - */ - -#include - -int main(int argc, char **argv) -{ - (void)argc; - (void)argv; - printf("printf used\n"); - return 0; -} diff --git a/bin/ak-ipfs-add b/bin/ak-ipfs-add index 5887b24..c3f75f1 100755 --- a/bin/ak-ipfs-add +++ b/bin/ak-ipfs-add @@ -1,3 +1,3 @@ #!/bin/bash +ipfs add -Qr "$1" -ipfs add -Qr $1 diff --git a/bin/ak-ipfs-block-stat b/bin/ak-ipfs-block-stat index 54b6b40..6668275 100755 --- a/bin/ak-ipfs-block-stat +++ b/bin/ak-ipfs-block-stat @@ -1,3 +1,3 @@ #!/bin/bash - ipfs block stat "$1" + diff --git a/bin/ak-ipfs-cat b/bin/ak-ipfs-cat index 2c29458..e1e6491 100755 --- a/bin/ak-ipfs-cat +++ b/bin/ak-ipfs-cat @@ -1,2 +1,3 @@ #!/bin/bash ipfs --timeout=10s cat $1 + diff --git a/bin/ak-ipfs-files-cp b/bin/ak-ipfs-files-cp index 70dd701..3e4dfbd 100755 --- a/bin/ak-ipfs-files-cp +++ b/bin/ak-ipfs-files-cp @@ -1,3 +1,3 @@ #!/bin/bash - ipfs files cp "$1" "$2" + diff --git a/bin/ak-ipfs-files-ls b/bin/ak-ipfs-files-ls index 78a7002..1354f83 100755 --- a/bin/ak-ipfs-files-ls +++ b/bin/ak-ipfs-files-ls @@ -1,3 +1,3 @@ #!/bin/bash - ipfs files ls "$1" + diff --git a/bin/ak-ipfs-files-mkdir b/bin/ak-ipfs-files-mkdir index a81ffe4..ab36f81 100755 --- a/bin/ak-ipfs-files-mkdir +++ b/bin/ak-ipfs-files-mkdir @@ -1,3 +1,3 @@ #!/bin/bash - ipfs files mkdir "$1" + diff --git a/bin/ak-ipfs-files-mv b/bin/ak-ipfs-files-mv index e69de29..918674a 100755 --- a/bin/ak-ipfs-files-mv +++ b/bin/ak-ipfs-files-mv @@ -0,0 +1,3 @@ +#!/bin/bash +ipfs files mv "$1" "$2" + diff --git a/bin/ak-ipfs-files-rm b/bin/ak-ipfs-files-rm index 1c4d597..6ac570d 100755 --- a/bin/ak-ipfs-files-rm +++ b/bin/ak-ipfs-files-rm @@ -1,3 +1,3 @@ #!/bin/bash - ipfs files rm "$1" + diff --git a/bin/ak-ipfs-files-stat b/bin/ak-ipfs-files-stat index 49e70e8..a378ed8 100755 --- a/bin/ak-ipfs-files-stat +++ b/bin/ak-ipfs-files-stat @@ -1,3 +1,3 @@ #!/bin/bash - ipfs files stat "$1" + diff --git a/bin/ak-ipfs-get b/bin/ak-ipfs-get index 8eee9be..ad959ed 100755 --- a/bin/ak-ipfs-get +++ b/bin/ak-ipfs-get @@ -1,3 +1,2 @@ #!/bin/bash - -ipfs get $1 +ipfs --timeout=10s get "$1" diff --git a/bin/ak-ipfs-key-list b/bin/ak-ipfs-key-list index dd33848..7ebdb15 100755 --- a/bin/ak-ipfs-key-list +++ b/bin/ak-ipfs-key-list @@ -1 +1,2 @@ +#!/bin/bash ipfs key list diff --git a/bin/ak-ipfs-name-publish b/bin/ak-ipfs-name-publish index 321ba89..d1e10cf 100755 --- a/bin/ak-ipfs-name-publish +++ b/bin/ak-ipfs-name-publish @@ -1,3 +1,3 @@ #!/bin/bash +ipfs name publish "$1" "$2" -ipfs name publish $1 $2 diff --git a/bin/ak-ipfs-name-resolve b/bin/ak-ipfs-name-resolve index d27c57a..1f7ea93 100755 --- a/bin/ak-ipfs-name-resolve +++ b/bin/ak-ipfs-name-resolve @@ -1,3 +1,3 @@ #!/bin/bash - ipfs name resolve "$1" + diff --git a/bin/ak-ipfs-swarm-peers b/bin/ak-ipfs-swarm-peers index 5d6e904..d906ec3 100755 --- a/bin/ak-ipfs-swarm-peers +++ b/bin/ak-ipfs-swarm-peers @@ -1 +1,2 @@ +#!/bin/bash ipfs swarm peers -- cgit v1.2.3