aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-24 06:01:16 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-24 06:01:16 +0300
commit21c7f1852b0d2ca145d18a165d6d90c6127dc44a (patch)
treefc7f56d5bd7132b2f7c96f4cf8887b53420eb320 /bin
parenta1583cc6041ae6239bf8e32ccadd11b0b79b4c79 (diff)
downloadarching-kaos-tools-21c7f1852b0d2ca145d18a165d6d90c6127dc44a.tar.gz
arching-kaos-tools-21c7f1852b0d2ca145d18a165d6d90c6127dc44a.tar.bz2
arching-kaos-tools-21c7f1852b0d2ca145d18a165d6d90c6127dc44a.zip
refactoring
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-find-latest-mined-sblock3
1 files changed, 2 insertions, 1 deletions
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