From 85477272c35e114a9f1b4c00d7b05c3bbfa27691 Mon Sep 17 00:00:00 2001 From: henk717 Date: Sat, 1 Jan 2022 19:45:32 +0100 Subject: [PATCH] Colab example file handling Expands the handling of the stories to userscripts and softprompts (Since I expect us to ship an example softprompt in the future). Now also copies the examples to your Google Drive if they are not already present. --- colabkobold.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/colabkobold.sh b/colabkobold.sh index 04b4ac6c..321105ee 100644 --- a/colabkobold.sh +++ b/colabkobold.sh @@ -88,8 +88,16 @@ if [ "$init" != "skip" ]; then mkdir /content/drive/MyDrive/KoboldAI/userscripts/ cd /content/KoboldAI-Client + + cp -rn stories/* /content/drive/MyDrive/KoboldAI/stories/ + cp -rn userscripts/* /content/drive/MyDrive/KoboldAI/userscripts/ + cp -rn softprompts/* /content/drive/MyDrive/KoboldAI/softprompts/ rm stories rm -rf stories/ + rm userscripts + rm -rf userscripts/ + rm softprompts + rm -rf softprompts/ ln -s /content/drive/MyDrive/KoboldAI/stories/ stories ln -s /content/drive/MyDrive/KoboldAI/settings/ settings ln -s /content/drive/MyDrive/KoboldAI/softprompts/ softprompts