diff --git a/colabkobold.sh b/colabkobold.sh index ab6ed86a..73bf3808 100644 --- a/colabkobold.sh +++ b/colabkobold.sh @@ -13,7 +13,7 @@ while true ; do -i|--init) init=$2 ; shift 2 ;; -p|--path) - mpath=" --path $2" ; shift 2 ;; + mpath="$2" ; shift 2 ;; -c|--configname) configname=" --configname $2" ; shift 2 ;; -n|--ngrok) @@ -46,7 +46,7 @@ function launch exit 0 else cd /content/KoboldAI-Client - python3 aiserver.py$model$mpath$configname$ngrok --remote --override_delete --override_rename + python3 aiserver.py$model$kmpath$configname$ngrok --remote --override_delete --override_rename exit fi } @@ -74,7 +74,10 @@ else fi # Redefine the Path to be in the relevant location +if [ -v $mpath ];then mpath="$xloc$mpath" +kmpath="--path $mpath" +fi # Create Folder Structure and Install KoboldAI if [ "$init" != "skip" ]; then