diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 08:25:40 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 08:25:40 +0200 |
commit | 29d256a370622139ed5b9916726b0730121d12e4 (patch) | |
tree | 6664608a7c64f843f9abf6a5f50b89d1d553c98c /bin | |
parent | 8569905d2f740e94053def935a08c20e589d8d68 (diff) | |
download | arching-kaos-tools-29d256a370622139ed5b9916726b0730121d12e4.tar.gz arching-kaos-tools-29d256a370622139ed5b9916726b0730121d12e4.tar.bz2 arching-kaos-tools-29d256a370622139ed5b9916726b0730121d12e4.zip |
Added counter
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/enter | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,11 +28,12 @@ zblock="$entrance" TEMPASSIN="/tmp/aktmp_$(date -u +%s)" mkdir $TEMPASSIN cd $TEMPASSIN - +counter=0 # The loop # We break the loop from inside the loop while true do + counter=$(expr $counter + 1) # Check if $zblock exists as variable if [ ! -v $zblock ] then @@ -95,6 +96,7 @@ do elif [ "$zblock" == "$seed" ] then echo "$zblock is GENESIS block" + logthis "Counter $counter" exit 0 fi # And finally, if nothing is there exit with error |