feat: add /mnt flag
This commit is contained in:
5
devc.sh
5
devc.sh
@@ -63,6 +63,11 @@ param_args() {
|
|||||||
arg "-e DISPLAY=$DISPLAY"
|
arg "-e DISPLAY=$DISPLAY"
|
||||||
arg "-e XAUTHORITY=/run/user/1000/.Xauthority"
|
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.
|
*) # Use unknown arguments a podman arguments.
|
||||||
arg "$1" ;;
|
arg "$1" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user