aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-ipfs (renamed from bin/ak-ipfs-daemon)2
-rwxr-xr-xbin/ak-zchain2
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/ak-ipfs-daemon b/bin/ak-ipfs
index e9a9bca..376c3c0 100755
--- a/bin/ak-ipfs-daemon
+++ b/bin/ak-ipfs
@@ -24,6 +24,7 @@
##
## -h, --help Prints this help message
## -d, --daemon Starts IPFS daemon for AK
+## -r, --run Runs an IPFS command for AK
##
fullprogrampath="$(realpath $0)"
PROGRAM=$(basename $0)
@@ -39,6 +40,7 @@ then
case $1 in
-h | --help) _ak_usage; exit;;
-d | --daemon) _ak_ipfs_starter; exit;;
+ -r | --run) shift; _ak_ipfs_runner $*; exit;;
* ) _ak_usage;;
esac
else _ak_usage
diff --git a/bin/ak-zchain b/bin/ak-zchain
index d32aeb9..0f1a29d 100755
--- a/bin/ak-zchain
+++ b/bin/ak-zchain
@@ -74,7 +74,7 @@ if [ ! -z $1 ]; then
--crawl-self) _ak_zchain_crawl_self; exit;;
--crawl-remote-ipfs) _ak_zchain_crawl_remote_ipfs $2; exit;;
--crawl-remote-ipns) _ak_zchain_crawl_remote_ipns $2; exit;;
- --get-latest) _ak_zchain_get_latest; exit;;
+ --get-latest) _ak_zchain_get_latest && printf '\n'; exit;;
* ) _ak_usage;;
esac
else _ak_usage