From 21c7f1852b0d2ca145d18a165d6d90c6127dc44a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 24 Jun 2024 06:01:16 +0300 Subject: refactoring --- bin/ak-find-latest-mined-sblock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ak-find-latest-mined-sblock b/bin/ak-find-latest-mined-sblock index 74fa919..c91197e 100755 --- a/bin/ak-find-latest-mined-sblock +++ b/bin/ak-find-latest-mined-sblock @@ -3,6 +3,7 @@ cd $AK_MINEDBLOCKSDIR PROGRAM="$(basename $0)" declare -A counters source $AK_LIBDIR/_ak_log +source $AK_LIBDIR/_ak_script source $AK_LIBDIR/_ak_ipfs if [ ! -z $1 ] && [ -n "$1" ] @@ -50,7 +51,7 @@ lookfor(){ fi } -templistblock="$(mktemp)" +templistblock="$(_ak_make_temp_file)" find . -type f | sed 's/^\.\/000/000/g' | grep '^000' | sort > $templistblock while IFS="" read -r p || [ -n "$p" ] do -- cgit v1.2.3