From abdfe0a5c2a86f19aafe12ae70663ddcf83a6e39 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 03:45:56 +0200 Subject: Applying new architecture with lib system --- bin/ak-news | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'bin/ak-news') diff --git a/bin/ak-news b/bin/ak-news index 5ccc3a9..5dbc847 100755 --- a/bin/ak-news +++ b/bin/ak-news @@ -6,6 +6,7 @@ ZNEWSDIR="$AK_WORKDIR/news" TEMP="/tmp/aktmp" source $AK_LIBDIR/_ak_logit +source $AK_LIBDIR/_ak_script_description if [ ! -d $ZNEWSDIR ]; then mkdir $ZNEWSDIR @@ -60,24 +61,7 @@ _ak_modules_news_index(){ rm temp } -new_line(){ - printf '\n' -} - -description(){ - full_title="$(printf '%s - %s' "$PROGRAM" "$descriptionString")" - delimiter_count=`echo -n $full_title | wc -c` - printf '%s' "$full_title" - new_line - while [ $delimiter_count -gt 0 ] - do - printf '=' - delimiter_count=$(($delimiter_count-1)) - done - new_line -} _ak_modules_news_title(){ -# echo $PROGRAM description } -- cgit v1.2.3