aboutsummaryrefslogtreecommitdiff
path: root/bin/enter
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2021-12-26 08:25:40 +0200
committerkaotisk <kaotisk@arching-kaos.com>2021-12-26 08:25:40 +0200
commit29d256a370622139ed5b9916726b0730121d12e4 (patch)
tree6664608a7c64f843f9abf6a5f50b89d1d553c98c /bin/enter
parent8569905d2f740e94053def935a08c20e589d8d68 (diff)
downloadarching-kaos-tools-29d256a370622139ed5b9916726b0730121d12e4.tar.gz
arching-kaos-tools-29d256a370622139ed5b9916726b0730121d12e4.tar.bz2
arching-kaos-tools-29d256a370622139ed5b9916726b0730121d12e4.zip
Added counter
Diffstat (limited to 'bin/enter')
-rwxr-xr-xbin/enter4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/enter b/bin/enter
index 8ae54fc..442d657 100755
--- a/bin/enter
+++ b/bin/enter
@@ -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