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