- veins → shunts rename - add cfg/standalone/ and cfg/<room>/ structure - remove old data/*.json (moved to cfg/<room>/data/) - update build.py and ctrl scripts
30 lines
452 B
Bash
Executable File
30 lines
452 B
Bash
Executable File
#!/bin/bash
|
|
# View soleprint logs
|
|
#
|
|
# Usage:
|
|
# ./logs.sh # Logs for standalone
|
|
# ./logs.sh amar # Logs for amar
|
|
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
|
|
TARGET="standalone"
|
|
ARGS=""
|
|
|
|
for arg in "$@"; do
|
|
case $arg in
|
|
-*) ARGS="$ARGS $arg" ;;
|
|
*) TARGET="$arg" ;;
|
|
esac
|
|
done
|
|
|
|
GEN_DIR="gen/$TARGET"
|
|
|
|
if [ ! -d "$GEN_DIR" ]; then
|
|
echo "$GEN_DIR not found"
|
|
exit 1
|
|
fi
|
|
|
|
cd "$GEN_DIR"
|
|
docker compose logs -f $ARGS
|