diff options
Diffstat (limited to 'os/debian/config')
-rwxr-xr-x | os/debian/config | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/debian/config b/os/debian/config index 01dfb3659..a4e1268f6 100755 --- a/os/debian/config +++ b/os/debian/config @@ -6,16 +6,16 @@ FILES="trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf sample.cat" DATADIR=/usr/share/games/openttd/data -MISSING="No"; +MISSING="No" for FILE in $FILES; do # Check if all the files needed are here. if [ ! -e $DATADIR/$FILE ]; then - MISSING="Yes"; - break; - fi; -done; + MISSING="Yes" + break + fi; +done if [ $MISSING = "Yes" ]; then db_input high openttd/datafiles || true db_go -fi; +fi |