помогите исправить код
COUNTER=100
echo "Do you wish to change the counter value currently set at $COUNTER ? [y..n] :"
read ANS
if [ "$ANS" = "y" ] || [ "$ANS" = "Y" ]; then
echo "Enter a sensible value "
read VALUE
expr $VALUE + 10 > /dev/null 2>&1
STATUS=$?
if [ "$VALUE" = "" ] || [ "$STATUS" != "0" ]; then
echo "You either entered nothing or a non-numeric " >&2
echo " Sorry now exiting..counter stays at $COUNTER" >&2
exit 1
fi
COUNTER= expr $COUNTER + $VALUE
echo "Counter now set to $COUNTER"
else
echo " Counter stays at $COUNTER"
fi
~
он выдаёт вот какой результат:
[serrggeee@localhost ~]$ sh test3
Do you wish to change the counter value currently set at 100 ? [y..n] :
y
Enter a sensible value
55
155
Counter now set to 100
[serrggeee@localhost ~]$
а мне нужно чтобы было Counter now set to 155