>>226
else じゃなくて then の問題じゃないの?

セミコロンを入れるか
if test "$reply" = "y"; then
2行にわけるか
if test "$reply" = "y"
then