]> granicus.if.org Git - nethack/commit
nethack.sh: test -e vs test -f
authorPatR <rankin@nethack.org>
Tue, 12 Mar 2019 21:11:26 +0000 (14:11 -0700)
committerPatR <rankin@nethack.org>
Tue, 12 Mar 2019 21:11:26 +0000 (14:11 -0700)
commite0bf7a01cc3bb7d2152dcdc247fd8456d199ea60
tree36b5c097c6ae6a6a13393f910c940f1a1015bc9d
parent8e7fe38daec1ad5231f3c3d3bc82b7f827782d80
nethack.sh: test -e vs test -f

Change the test for whether fonts.dir exists (added to the script
in 3.6.0, for automatically setting up possible use of the NH10 font
under X11) from 'test -e file' to 'test -f file' since the latter
seems to be more universally available.  When present, fonts.dir is
plain text, so a test for "exists and is a regular file" rather than
one for general existance is appropriate.
doc/fixes36.2
sys/unix/nethack.sh