do not try to install lunitx if already installed

This commit is contained in:
Enno Rehling 2020-09-30 05:08:23 +02:00
parent 5890db482a
commit 48ad550527
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ pkg-config --exists sqlite3 && ERESSEA_DB=sqlite
GETOPT=getopt
GETOPT_LONG=1
if [ -z "$(luarocks which lunitx)" ] ; then
luarocks install lunitx --local
fi
if [ "Darwin" = "$(uname)" ] ; then
if [ -x "/usr/local/opt/gnu-getopt/bin/getopt" ] ; then
GETOPT="/usr/local/opt/gnu-getopt/bin/getopt"