File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 169169
170170# Create staging directory
171171CURRENT_STAGING_DIR=" ${STAGING_DIR} /${HF_NAMESPACE} /${ENV_NAME} "
172+ # Ensure clean staging directory
173+ rm -rf " $CURRENT_STAGING_DIR "
172174mkdir -p " $CURRENT_STAGING_DIR /src/core"
173175mkdir -p " $CURRENT_STAGING_DIR /src/envs/$ENV_NAME "
174176
175- # Copy src/__init__.py if it exists
176- if [ -f " src/__init__.py" ]; then
177- cp src/__init__.py " $CURRENT_STAGING_DIR /src/__init__.py"
178- fi
179-
180177# Copy core files
181- cp -R src/core/ " $CURRENT_STAGING_DIR /src/core/"
178+ cp -R src/core/* " $CURRENT_STAGING_DIR /src/core/"
182179
183180# Copy environment files
184- cp -R " src/envs/$ENV_NAME /" " $CURRENT_STAGING_DIR /src/envs/$ENV_NAME /"
185-
186- # Create __init__.py for envs package (needed for Python imports)
187- touch " $CURRENT_STAGING_DIR /src/envs/__init__.py"
181+ cp -R src/envs/$ENV_NAME /* " $CURRENT_STAGING_DIR /src/envs/$ENV_NAME /"
188182
189183echo " 📁 Copied core and $ENV_NAME environment files to $CURRENT_STAGING_DIR "
190184
You can’t perform that action at this time.
0 commit comments