More path fixes

This commit is contained in:
henk717 2022-01-11 14:16:57 +01:00 committed by GitHub
parent 4cd09d0385
commit ef69a062d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,7 @@ while true ; do
-i|--init) -i|--init)
init=$2 ; shift 2 ;; init=$2 ; shift 2 ;;
-p|--path) -p|--path)
mpath=" --path $2" ; shift 2 ;; mpath="$2" ; shift 2 ;;
-c|--configname) -c|--configname)
configname=" --configname $2" ; shift 2 ;; configname=" --configname $2" ; shift 2 ;;
-n|--ngrok) -n|--ngrok)
@ -46,7 +46,7 @@ function launch
exit 0 exit 0
else else
cd /content/KoboldAI-Client 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 exit
fi fi
} }
@ -74,7 +74,10 @@ else
fi fi
# Redefine the Path to be in the relevant location # Redefine the Path to be in the relevant location
if [ -v $mpath ];then
mpath="$xloc$mpath" mpath="$xloc$mpath"
kmpath="--path $mpath"
fi
# Create Folder Structure and Install KoboldAI # Create Folder Structure and Install KoboldAI
if [ "$init" != "skip" ]; then if [ "$init" != "skip" ]; then