From fc91066907e4d16a951c8d72d23aa610945f5407 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 3 Apr 2023 05:15:00 +0300 Subject: Clean up, elimination of duplicate tempassins, fixed current directory problems, introduced new tool --- bin/ak-articles | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ak-articles') diff --git a/bin/ak-articles b/bin/ak-articles index e198712..9256d2a 100755 --- a/bin/ak-articles +++ b/bin/ak-articles @@ -72,7 +72,7 @@ import(){ fi exit 224 } -add() +add(){ TEMP="$(ak-tempassin)" cd $TEMP if [ -f $1 ]; then @@ -97,7 +97,7 @@ EOF echo "File $FILE doesn't exist"; exit 2 fi - ak-pack_z_block "articles/add" data + ak-pack_z_block "articles/add" $(pwd)/data if [ $? == 0 ] then echo "Articles added successfully" -- cgit v1.2.3