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=getopt
GETOPT_LONG=1 GETOPT_LONG=1
luarocks install lunitx --local if [ -z "$(luarocks which lunitx)" ] ; then
luarocks install lunitx --local
fi
if [ "Darwin" = "$(uname)" ] ; then if [ "Darwin" = "$(uname)" ] ; then
if [ -x "/usr/local/opt/gnu-getopt/bin/getopt" ] ; then if [ -x "/usr/local/opt/gnu-getopt/bin/getopt" ] ; then
GETOPT="/usr/local/opt/gnu-getopt/bin/getopt" GETOPT="/usr/local/opt/gnu-getopt/bin/getopt"