From 49e4cefd5bfbd462a5121c8bfcfd272f7558bcc1 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Thu, 2 Feb 2023 13:15:59 +0100 Subject: [PATCH] install script with options of install directory and command prefix --- install_obitools.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_obitools.sh b/install_obitools.sh index 1ac07c0..f645e32 100755 --- a/install_obitools.sh +++ b/install_obitools.sh @@ -59,7 +59,7 @@ if [[ ! "$WORK_DIR" || ! -d "$WORK_DIR" ]]; then exit 1 fi -mkdir -p "${INSTALL_DIR}/bin" \ +mkdir -p "${INSTALL_DIR}/bin" 2> /dev/null \ || (echo "Please enter your password for installing obitools in ${INSTALL_DIR}" sudo mkdir -p "${INSTALL_DIR}/bin") @@ -110,7 +110,7 @@ else make OBITOOLS_PREFIX="${OBITOOLS_PREFIX}" fi -cp build/* "${INSTALL_DIR}/bin" \ +cp build/* "${INSTALL_DIR}/bin" 2> /dev/null \ || sudo cp build/* "${INSTALL_DIR}/bin" popd