feat: add /mnt flag
Some checks failed
Build container / fedora-build (push) Failing after 4m42s
Build container / kali-build (push) Successful in 5m27s

This commit is contained in:
Job
2025-10-31 11:57:26 +01:00
parent bb43c758f9
commit b5dd280e5a

View File

@@ -63,6 +63,11 @@ param_args() {
arg "-e DISPLAY=$DISPLAY"
arg "-e XAUTHORITY=/run/user/1000/.Xauthority"
;;
-mnt) # Mount directory.
shift
arg "-w /mnt/"
arg "-v $1:/mnt/$([ ! -d "$1" ] && echo 'file')"
;;
*) # Use unknown arguments a podman arguments.
arg "$1" ;;
esac