比较三个数

#!/bin/bash
echo "enter:"
read a b c
if [ $a -gt $b ]
then
 max=$a
else
  max=$b
fi
if [ $c -gt $max ]
then
  max=$c
fi
echo "$max"