添加WORKING_DIR目录存在性检查

This commit is contained in:
yhydev
2025-12-13 23:33:59 +08:00
parent 3c5eeba1ef
commit a85d8735c0

View File

@@ -22,6 +22,12 @@ fi
# Set working directory with default value # Set working directory with default value
WORKING_DIR=${WORKING_DIR:-/kaggle/working} WORKING_DIR=${WORKING_DIR:-/kaggle/working}
# Check if WORKING_DIR directory exists
if [ ! -d "$WORKING_DIR" ]; then
echo "Error: WORKING_DIR directory '$WORKING_DIR' does not exist"
exit 1
fi
pip install \ pip install \
git+https://gitea.oopsapi.com/yhydev/myscripts.git \ git+https://gitea.oopsapi.com/yhydev/myscripts.git \
prefect_shell \ prefect_shell \