What exactly do mean by fix and run?
However, there are some errors:
Specify the shell in the first line of the script (common are bash and sh):
The while loop will execute never or forever depending on
$year
(may be not 15 initially and when it is never changed inside the loop).
The line
elif firefox;then
must be fixed. There is probably no variable firefox
and there should be space between the semicolon and then
.
There is a
fi
missing (before the
done
from the while)
Finally save your script with the extension
.sh (EDIT: not necessary but best practice) and make it executable:
chmod 775 <script-name>