From 3f74aabecd08ed25fac158463ae12b775bd1fca2 Mon Sep 17 00:00:00 2001 From: mauwii Date: Tue, 8 Nov 2022 22:20:44 +0100 Subject: [PATCH] use command instead of hash --- 1-click-installer/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/1-click-installer/install.sh b/1-click-installer/install.sh index 33f467845b..fd2624dc99 100755 --- a/1-click-installer/install.sh +++ b/1-click-installer/install.sh @@ -43,8 +43,8 @@ if [ -e "$INSTALL_ENV_DIR" ]; then export PATH="$INSTALL_ENV_DIR/bin:$PATH"; fi PACKAGES_TO_INSTALL="" -if ! hash "conda" &>/dev/null; then PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL conda"; fi -if ! hash "git" &>/dev/null; then PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL git"; fi +if ! command conda &>/dev/null; then PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL conda"; fi +if ! command git &>/dev/null; then PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL git"; fi if "$MAMBA_ROOT_PREFIX/micromamba" --version &>/dev/null; then umamba_exists="T"; fi @@ -125,6 +125,6 @@ else # tell the user their next steps echo "You can now start generating images by running invoke.sh (inside this folder), using ./invoke.sh" fi -fi +fi conda activate invokeai