From 00066da7d90d4a67c3832ca433376b3b0e4ab079 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 24 Dec 2022 12:30:15 +0800 Subject: fix get.sh --- scripts/get.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/get.sh b/scripts/get.sh index 8a54b5c19..271c311d9 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -187,19 +187,17 @@ else fi # do build -if [ "x$prefix" = "x" ]; then - prefix=~/.local -fi if [ 'x__install_only__' != "x$2" ]; then - if [ "x$prefix" != "x" ]; then - ./configure --prefix="$prefix" || raise "configure failed!" - else + if [ -f "./configure" ]; then ./configure || raise "configure failed!" fi $make -j`nproc` || raise "make failed!" fi # do install +if [ "x$prefix" = "x" ]; then + prefix=~/.local +fi if [ "x$prefix" != "x" ]; then $make install PREFIX="$prefix" || raise "install failed!" else -- cgit v1.3.1