using if in bash script to check if prog exists
i have this script i wrote to use in nautilus to play mp3s in mplayer just for shell script practice, and it dosen't seem to work if i put an if routine in it to check that mplayer is executable and exists.
if [-x mplayer] then
but if i take out the test:
what am i doing wrong with the if check?