mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-10 06:18:02 -05:00
added check writable folders
This commit is contained in:
0
audiobooks/cli/.gitkeep
Normal file → Executable file
0
audiobooks/cli/.gitkeep
Normal file → Executable file
0
audiobooks/gui/gradio/.gitkeep
Normal file → Executable file
0
audiobooks/gui/gradio/.gitkeep
Normal file → Executable file
0
audiobooks/gui/host/.gitkeep
Normal file → Executable file
0
audiobooks/gui/host/.gitkeep
Normal file → Executable 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
0
models/.gitkeep
Normal file → Executable file
0
tmp/.gitkeep
Normal file → Executable file
0
tmp/.gitkeep
Normal file → Executable file
Reference in New Issue
Block a user