From 2afc2b69911b561105bf6a15d86881cfc10a06d2 Mon Sep 17 00:00:00 2001 From: ulmentflam Date: Sat, 15 Jun 2024 17:08:39 -0400 Subject: [PATCH] Changing directories --- ct/fooocus.sh | 4 ++-- install/fooocus-install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/fooocus.sh b/ct/fooocus.sh index 7f5b16f3..657efa32 100644 --- a/ct/fooocus.sh +++ b/ct/fooocus.sh @@ -77,8 +77,8 @@ if [ "$UPD" == "1" ]; then cd ~ || msg_error "Failed to change directory" wget -q https://github.com/lllyasviel/Fooocus/archive/refs/tags/"${RELEASE}".tar.gz tar -xf "${RELEASE}".tar.gz - cp -r "${RELEASE}"/* /opt/Fooocus - rm -rf "${RELEASE}" "${RELEASE}".tar.gz + cp -r "Fooocus-${RELEASE}"/* /opt/Fooocus + rm -rf "Fooocus-${RELEASE}" "${RELEASE}".tar.gz cd /opt/Fooocus || msg_error "Failed to change directory" pip3 install --upgrade pip pip3 install -r requirements_versions.txt diff --git a/install/fooocus-install.sh b/install/fooocus-install.sh index 492aae14..1770351f 100644 --- a/install/fooocus-install.sh +++ b/install/fooocus-install.sh @@ -33,8 +33,8 @@ FOOOCUS_VERSION=$(wget -q https://github.com/lllyasviel/Fooocus/releases/latest cd /opt || msg_error "Failed to change directory to /opt" $STD wget https://github.com/lllyasviel/Fooocus/archive/refs/tags/"${FOOOCUS_VERSION}".tar.gz $STD tar -xf "${FOOOCUS_VERSION}".tar.gz -mv "${FOOOCUS_VERSION}" /opt/Fooocus -rm -rf "${FOOOCUS_VERSION}" "${FOOOCUS_VERSION}".tar.gz +mv "Fooocus-${FOOOCUS_VERSION}" /opt/Fooocus +rm -rf "Fooocus-${FOOOCUS_VERSION}" "${FOOOCUS_VERSION}".tar.gz cd /opt/Fooocus || msg_error "Failed to change directory to /opt/Fooocus" $STD pip3 install --upgrade pip $STD pip3 install -r requirements.txt