-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5cd2c2
commit 5d83fe7
Showing
9 changed files
with
71 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
#!/bin/bash | ||
umask 002 | ||
|
||
branch=master | ||
source /opt/ai-dock/bin/venv-set.sh comfyui | ||
|
||
if [[ -n "${COMFYUI_BRANCH}" ]]; then | ||
branch="${COMFYUI_BRANCH}" | ||
if [[ -n "${COMFYUI_REF}" ]]; then | ||
ref="${COMFYUI_REF}" | ||
else | ||
# The latest tagged release | ||
ref="$(curl -s https://api.github.com/repos/comfyanonymous/ComfyUI/tags | \ | ||
jq -r '.[0].name')" | ||
fi | ||
|
||
# -b flag has priority | ||
while getopts b: flag | ||
# -r argument has priority | ||
while getopts r: flag | ||
do | ||
case "${flag}" in | ||
b) branch="$OPTARG";; | ||
r) ref="$OPTARG";; | ||
esac | ||
done | ||
|
||
printf "Updating ComfyUI (${branch})...\n" | ||
[[ -n $ref ]] || { echo "Failed to get update target"; exit 1; } | ||
|
||
printf "Updating ComfyUI (${ref})...\n" | ||
|
||
cd /opt/ComfyUI | ||
git checkout ${branch} | ||
git fetch --tags | ||
git checkout ${ref} | ||
git pull | ||
|
||
"$COMFYUI_VENV_PIP" install --no-cache-dir \ | ||
-r requirements.txt | ||
"$COMFYUI_VENV_PIP" install --no-cache-dir -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters