Improved build commands
This commit is contained in:
11
dbg
11
dbg
@@ -1,3 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
docker-compose -f toolchain/docker-compose.yml run --rm dbg "$@"
|
||||
default="gdb -q -x /opt/toolchain/gdbinit"
|
||||
|
||||
if [[ "$1" == "-" ]]; then
|
||||
shift
|
||||
cmd="$@"
|
||||
else
|
||||
cmd="${default} $@"
|
||||
fi
|
||||
|
||||
docker-compose -f toolchain/docker-compose.yml run --rm -u $(id -u):$(id -g) run ${cmd}
|
||||
Reference in New Issue
Block a user