diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-20 17:22:41 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-20 17:22:41 +0300 |
commit | 6358b59dc6416da13c3cc9ae5e3a32ec41f6b87a (patch) | |
tree | 85e67082a2ad80ac3d92bb7360984273f1060f57 /modules | |
parent | 8667152bc05967c2a9b19a80d809c81caec0a4df (diff) | |
download | arching-kaos-tools-6358b59dc6416da13c3cc9ae5e3a32ec41f6b87a.tar.gz arching-kaos-tools-6358b59dc6416da13c3cc9ae5e3a32ec41f6b87a.tar.bz2 arching-kaos-tools-6358b59dc6416da13c3cc9ae5e3a32ec41f6b87a.zip |
Minimized 'ak' usage in the scripts in favor of functions
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/mixtapes/lib.sh | 4 | ||||
-rwxr-xr-x | modules/news/lib.sh | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/mixtapes/lib.sh b/modules/mixtapes/lib.sh index 4738a35..04551e0 100755 --- a/modules/mixtapes/lib.sh +++ b/modules/mixtapes/lib.sh @@ -60,9 +60,9 @@ _ak_modules_mixtapes_get_local_latest(){ cd $tempdir if [ -z "$1" ] then - ak zchain --crawl -l 1 | jq > aktempzblock + _ak_zchain_crawl -l 1 | jq > aktempzblock else - ak zchain --crawl -l 1 $1 | jq > aktempzblock + _ak_zchain_crawl -l 1 $1 | jq > aktempzblock fi curzblock="`cat aktempzblock | jq -r '.[].zblock'`" curaction="`cat aktempzblock | jq -r '.[].action'`" diff --git a/modules/news/lib.sh b/modules/news/lib.sh index 0cb0d81..35ff807 100755 --- a/modules/news/lib.sh +++ b/modules/news/lib.sh @@ -168,7 +168,7 @@ _ak_modules_news_read(){ exit 0 fi - ak zchain --crawl -l 1 $1 > temp + _ak_zchain_crawl -l 1 $1 > temp if [ $? -ne 0 ] then echo error @@ -192,7 +192,7 @@ _ak_modules_news_read(){ } _ak_modules_news_html(){ - ak zchain --crawl -l 1 $1 > temp + _ak_zchain_crawl -l 1 $1 > temp if [ $? -ne 0 ] then _ak_log_error "Failed to retrieve zblock $1" @@ -287,9 +287,9 @@ _ak_modules_news_read_latest_local_news(){ cd $TEMP if [ -z "$1" ] then - ak zchain --crawl -l 1 | jq > aktempzblock + _ak_zchain_crawl -l 1 | jq > aktempzblock else - ak zchain --crawl -l 1 $1 | jq > aktempzblock + _ak_zchain_crawl -l 1 $1 | jq > aktempzblock fi curzblock="`cat aktempzblock | jq -r '.[].zblock'`" |