stargazing/absurdism

14 lines
386 B
Text
Raw Normal View History

2022-10-14 21:13:12 -07:00
#!/usr/bin/env sh
: \
2022-10-14 21:39:36 -07:00
&& [ "$(id -u)" -eq 0 ] \
2022-10-14 21:13:12 -07:00
&& [ -s build-all ] \
2022-10-14 21:40:21 -07:00
&& { [ -d out ] || mkdir out || exit ;} \
2022-10-14 21:39:36 -07:00
&& chmod -R 0755 . \
&& chown -R 0:1000 . \
&& chmod -R 0775 out \
2022-10-14 21:13:12 -07:00
&& podman run -v="$(readlink -f .)":/stargazing -e=TERM=$TERM -it --rm \
--security-opt label=disable --user podman quay.io/podman/stable \
/stargazing/build-all \
2022-10-14 21:39:36 -07:00
|| echo something died \
2022-10-14 21:13:12 -07:00
;