aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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