Easier Dropdown support for Git

Colab does not allow to define labels for the modes, so to keep things simple for a version selector United is now capitalized and Stable has been added behaving the same as leaving it empty. This does potentially break all the dev colab's, so if you forked one make sure it uses United with a capital U for maximum compatibility.
This commit is contained in:
henk717 2022-01-17 05:16:03 +01:00 committed by GitHub
parent 260f4ffae0
commit bc3141b2e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -89,7 +89,10 @@ if [ "$init" != "skip" ]; then
else else
cd /content cd /content
if [ ! -z ${git+x} ]; then if [ ! -z ${git+x} ]; then
if [ "$git" == "united" ]; then if [ "$git" == "Stable" ]; then
git clone https://github.com/koboldai/KoboldAI-Client
fi
if [ "$git" == "United" ]; then
git clone https://github.com/henk717/KoboldAI-Client git clone https://github.com/henk717/KoboldAI-Client
fi fi
git clone $git git clone $git