main
sh 12 lines 331 Bytes
Raw
1 #!/bin/bash
2 set -e
3
4 # Paths
5 SOURCE_DIR="/git/agent-zero"
6 TARGET_DIR="/a0"
7
8 # Copy repository files if run_ui.py is missing in /a0 (if the volume is mounted)
9 if [ ! -f "$TARGET_DIR/run_ui.py" ]; then
10 echo "Copying files from $SOURCE_DIR to $TARGET_DIR..."
11 cp -rn --no-preserve=ownership,mode "$SOURCE_DIR/." "$TARGET_DIR"
12 fi