aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2025-04-03 20:18:29 +0300
committerkaotisk <kaotisk@arching-kaos.org>2025-04-03 20:18:29 +0300
commit0f05cd71b809b77c38fcd11ca44f35757fd414c9 (patch)
treeb9ccc9afeea89416eadfb0c1b1030f65e6cece21
parent4db70858d9b2b6ad99bfa90e006bcadc4e4e07b6 (diff)
downloadarching-kaos-tools-0f05cd71b809b77c38fcd11ca44f35757fd414c9.tar.gz
arching-kaos-tools-0f05cd71b809b77c38fcd11ca44f35757fd414c9.tar.bz2
arching-kaos-tools-0f05cd71b809b77c38fcd11ca44f35757fd414c9.zip
[fix] removing trailing newline
-rwxr-xr-xbin/ak-zchain2
-rwxr-xr-xlib/_ak_zchain2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/ak-zchain b/bin/ak-zchain
index 212b606..abd43b2 100755
--- a/bin/ak-zchain
+++ b/bin/ak-zchain
@@ -76,7 +76,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 && printf '\n'; exit;;
+ --get-latest) _ak_zchain_get_latest; exit;;
--output-types)shift; _ak_zchain_output_types $1; exit;;
* ) _ak_usage;;
esac
diff --git a/lib/_ak_zchain b/lib/_ak_zchain
index 547e773..01e8623 100755
--- a/lib/_ak_zchain
+++ b/lib/_ak_zchain
@@ -283,7 +283,7 @@ function _ak_zchain_crawl_remote_ipns(){
}
function _ak_zchain_get_latest(){
- cat $AK_ZLATEST
+ cat $AK_ZLATEST | tr -d '\n'
}
# _ak_zchain_announce(){}