don't hardcode absolute paths

This commit is contained in:
Connor Olding 2022-09-23 13:30:01 -07:00
parent bc734f6bd1
commit 150b4ae76b

View file

@ -3,7 +3,7 @@
yes_retrieve() {
local a="$1"
shift || return
podman run -v="$HOME/play":/play --rm --entrypoint /bin/busybox "$a" cp -- "$@" "/play/"
podman run -v="play":/out --rm --entrypoint /bin/busybox "$a" cp -- "$@" "/out/"
}
dbg_retrieve() {
@ -14,9 +14,13 @@ dbg_retrieve() {
}
: \
&& podman build -t notwa-util ~/work/notwa-util \
&& podman build -t cosmo ~/work/cosmo \
&& podman build -t cosmo-kuroko ~/work/cosmo-kuroko \
&& cd "$(readlink -f "$0")" \
\
&& [ -d out ] || mkdir out \
\
&& podman build -t notwa-util notwa-util \
&& podman build -t cosmo cosmo \
&& podman build -t cosmo-kuroko cosmo-kuroko \
\
&& dbg_retrieve cosmo-kuroko /bin/kuroko.com \
;