added check writable folders

This commit is contained in:
ROBERT-MCDOWELL
2024-11-05 03:07:16 +00:00
parent c8c0b39a0b
commit 3fda29a888
6 changed files with 2 additions and 0 deletions

0
audiobooks/cli/.gitkeep Normal file → Executable file
View File

0
audiobooks/gui/gradio/.gitkeep Normal file → Executable file
View File

0
audiobooks/gui/host/.gitkeep Normal file → Executable file
View File

View File

@@ -206,6 +206,8 @@ function conda_check {
fi
fi
if [[ ! -d $SCRIPT_DIR/$PYTHON_ENV ]]; then
# Use this condition to chmod writable folders once
chmod -R 777 ./audiobooks ./tmp ./models
conda create --prefix $SCRIPT_DIR/$PYTHON_ENV python=$PYTHON_VERSION -y
source $CONDA_ENV
conda activate $SCRIPT_DIR/$PYTHON_ENV

0
models/.gitkeep Normal file → Executable file
View File

0
tmp/.gitkeep Normal file → Executable file
View File