From b5dd280e5a45fde1d0b2a4eb7b2047c56908108f Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 31 Oct 2025 11:57:26 +0100 Subject: [PATCH] feat: add /mnt flag --- devc.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devc.sh b/devc.sh index 4c55f83..08dc9ba 100755 --- a/devc.sh +++ b/devc.sh @@ -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