aboutsummaryrefslogtreecommitdiff
path: root/modules/news/lib.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-30 22:39:50 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-30 22:39:50 +0300
commitde53c55383ed07e0b65f69d33f5284a31d791664 (patch)
treef1e426c88a5d0a48ca463eccd21c1d12524d8f3a /modules/news/lib.sh
parent9531bcdffff4e44e8aadb000f0b577d59a32ea3f (diff)
downloadarching-kaos-tools-de53c55383ed07e0b65f69d33f5284a31d791664.tar.gz
arching-kaos-tools-de53c55383ed07e0b65f69d33f5284a31d791664.tar.bz2
arching-kaos-tools-de53c55383ed07e0b65f69d33f5284a31d791664.zip
Refactoring
Diffstat (limited to 'modules/news/lib.sh')
-rwxr-xr-xmodules/news/lib.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/news/lib.sh b/modules/news/lib.sh
index 8f1e98a..0cb0d81 100755
--- a/modules/news/lib.sh
+++ b/modules/news/lib.sh
@@ -168,7 +168,7 @@ _ak_modules_news_read(){
exit 0
fi
- ak-enter -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-enter -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-enter -l 1 | jq > aktempzblock
+ ak zchain --crawl -l 1 | jq > aktempzblock
else
- ak-enter -l 1 $1 | jq > aktempzblock
+ ak zchain --crawl -l 1 $1 | jq > aktempzblock
fi
curzblock="`cat aktempzblock | jq -r '.[].zblock'`"