From 3dab40bb8dcfb2c4fffaf4ea9827114f40a1ef03 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 15 Nov 2024 09:30:34 +0200 Subject: Settings directory properly set up during installation now --- install.sh | 1 + lib/_ak_script | 2 -- lib/_ak_zblock | 1 + modules/mixtapes/main.sh | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 21325f2..7a62c81 100755 --- a/install.sh +++ b/install.sh @@ -121,6 +121,7 @@ fi if [ ! -d $AK_CONFIGDIR ] ; then mkdir $AK_CONFIGDIR ;fi if [ ! -d $AK_BINDIR ]; then mkdir $AK_BINDIR ;fi +if [ ! -d $AK_SETTINGS ]; then mkdir $AK_SETTINGS ;fi if [ ! -d $AK_LIBDIR ]; then mkdir $AK_LIBDIR ;fi if [ ! -d $AK_MODULESDIR ]; then mkdir $AK_MODULESDIR ;fi if [ ! -d $AK_ZBLOCKDIR ]; then mkdir $AK_ZBLOCKDIR ;fi diff --git a/lib/_ak_script b/lib/_ak_script index 97013fb..81da347 100755 --- a/lib/_ak_script +++ b/lib/_ak_script @@ -35,7 +35,6 @@ _ak_help(){ } _ak_title_description(){ - if [ ! -n "$descriptionString" ] then # Choose to exit with error to enforce standard @@ -44,7 +43,6 @@ _ak_title_description(){ # Alternative solution # full_title="$(printf '%s' "$PROGRAM")" fi - full_title="$(printf '%s - %s' "$PROGRAM" "$descriptionString")" delimiter_count=`echo -n $full_title | wc -c` ( diff --git a/lib/_ak_zblock b/lib/_ak_zblock index 17b4319..1b278a0 100755 --- a/lib/_ak_zblock +++ b/lib/_ak_zblock @@ -110,6 +110,7 @@ _ak_data_expand(){ # Returns a JSON array representing the chain retrieved. # Logs messages to $LOGSFILE. _ak_zblock_show(){ + caller >&2 verify=1 if [ ! -z $1 ] && [ -n "$1" ] then diff --git a/modules/mixtapes/main.sh b/modules/mixtapes/main.sh index 9748cd3..27616d0 100755 --- a/modules/mixtapes/main.sh +++ b/modules/mixtapes/main.sh @@ -5,8 +5,8 @@ ## Usage: ## ## -a <file> Adds a file with tags artist and title -## -h , --help -## -s , --specs +## -h, --help Prints this help message +## -s, --specs ## # We can extend it by calling the _ak_zblock_pack.sh mixtape/add data ## ORIGINAL LINE fullprogrampath="$(realpath $0)" -- cgit v1.2.3