diff --git a/configure.sh b/configure.sh index 436bcfa..97b4bb4 100755 --- a/configure.sh +++ b/configure.sh @@ -11,7 +11,7 @@ ARCHIVE=$(basename "$URL") if command -v apt >/dev/null 2>&1; then deps="libmpfr-dev libmpc-dev libgmp-dev libpng-dev libppl-dev flex g++ git texinfo xz-utils" pm=apt - pm_has="apt show" + pm_has="dpkg -s" pm_install="sudo apt install" elif command -v pacman >/dev/null 2>&1; then deps="mpfr mpc gmp libpng ppl flex gcc git texinfo xz" @@ -35,11 +35,11 @@ fi if [[ ! -z "$missing" ]]; then echo "$TAG Based on $pm, some dependencies are missing: $missing" - echo -n "$TAG Do you want to run '$pm_install' to install them (Y/n)? " + echo -n "$TAG Do you want to run '$pm_install $missing' to install them (Y/n)? " read do_install if [[ "$do_install" == "y" || "$do_install" == "Y" || "$do_install" == "" ]]; then - $pm_install + $pm_install $missing else echo "$TAG Skipping dependencies, hoping it will build anyway." fi