14 lines
166 B
Bash
14 lines
166 B
Bash
|
#! /bin/sh
|
||
|
|
||
|
if [ ! -f .version ]
|
||
|
then
|
||
|
echo 0 > .version
|
||
|
fi
|
||
|
cycle=`cat .version`
|
||
|
cycle=`expr $cycle + 1`
|
||
|
if [ $cycle -gt 99 ]
|
||
|
then
|
||
|
cycle=0
|
||
|
fi
|
||
|
echo $cycle > .version
|