Browse Source

fix build deps script syntax

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
8aa4d8b8b7
  1. 8
      install-minetest-build-deps.sh

8
install-minetest-build-deps.sh

@ -22,19 +22,19 @@ sleep 1
echo echo
this_dnf="" this_dnf=""
if [ -f "`command -v dnf`" ]; then if [ -f "`command -v dnf`" ]; then
this_dnf = "dnf" this_dnf="dnf"
else else
if [ -f "`command -v yum`" ]; then if [ -f "`command -v yum`" ]; then
this_dnf = "yum" this_dnf="yum"
echo "WARNING: dnf not found, reverting to yum." echo "WARNING: dnf not found, reverting to yum."
fi fi
fi fi
this_apt="" this_apt=""
if [ -f "`command -v apt`" ]; then if [ -f "`command -v apt`" ]; then
this_apt = "apt" this_apt="apt"
else else
if [ -f "`command -v apt-get`" ]; then if [ -f "`command -v apt-get`" ]; then
this_apt = "apt-get" this_apt="apt-get"
echo "WARNING: apt not found, reverting to apt-get." echo "WARNING: apt not found, reverting to apt-get."
fi fi
fi fi

Loading…
Cancel
Save