X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=frotz-wrapper;h=9941e13e7370e5cff1048577154167da4b4246aa;hb=ef87c4e26374dcdc178baf675222baaca30c7db5;hp=53035ee94d2ef0d65c4eabf49cf6a4d2def2a6bb;hpb=0d8ec565286c0fec2ba8f03f26fc527aa2e9082e;p=packages%2Ffrotz.git diff --git a/frotz-wrapper b/frotz-wrapper index 53035ee..9941e13 100644 --- a/frotz-wrapper +++ b/frotz-wrapper @@ -1,9 +1,12 @@ #!/bin/sh -GAME=/usr/share/games/zcode/`basename $0`.z5 - -if [ -f $GAME ]; then - frotz $GAME +if [ -f /usr/share/games/zcode/`basename $0`.z5 ]; then + GAME=/usr/share/games/zcode/`basename $0`.z5 +elif [ -f /usr/share/games/zcode/`basename $0`.z8 ]; then + GAME=/usr/share/games/zcode/`basename $0`.z8 else - echo "This game does not exist." + echo "This game does not exist." + exit fi + +frotz $GAME