Files
agv_pro_ros2/navigation2/.devcontainer/post-create-command.sh
2025-05-27 19:03:40 +08:00

19 lines
383 B
Bash
Executable File

#!/bin/bash
# Immediately catch all errors
set -eo pipefail
# Uncomment for debugging
# set -x
# env
# Enable autocomplete for user
cp /etc/skel/.bashrc ~/
# Check if srv folder exists
if [ -d "$ROOT_SRV" ]; then
# Setup Nav2 web app
for dir in $OVERLAY_WS/src/navigation2/.devcontainer/caddy/srv/*; \
do if [ -d "$dir" ]; then ln -s "$dir" $ROOT_SRV; fi done
fi