Clean up convenience functions

This commit is contained in:
thomas committed 2022-01-04 21:55:44 +01:00
1 parent d6025a1db7
commit d69a047172
3 files changed
+26 -5

No files matched your search

+7 -2
View File
@@ -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}