12 lines
270 B
Bash
Executable File
12 lines
270 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
default="qemu-system-x86_64 -s -S -cdrom /opt/mittos.iso -curses"
|
|
|
|
if [[ "$1" == "-" ]]; then
|
|
shift
|
|
cmd="$@"
|
|
else
|
|
cmd="${default} $@"
|
|
fi
|
|
|
|
docker-compose -f toolchain/docker-compose.yml run --rm --name emul -u $(id -u):$(id -g) run ${cmd} |