Skip to content

Commit

Permalink
-v: fix parsing (no optional argument)
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed May 7, 2022
1 parent 64466a8 commit bee1ad1
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Run 'x11docker --help' or scroll down to read usage information.
# More documentation at: https://github.com/mviereck/x11docker

Version="7.1.5-beta-8"
Version="7.1.5-beta-9"

# --enforce-i: Enforce running in interactive mode to allow commands tty and weston-launch in special setups.
grep -q -- "--enforce-i" <<< "$*" && case $- in
Expand Down Expand Up @@ -7223,6 +7223,7 @@ start_container() { # docker run
no)
case "$Backend" in
host)
#echo $Hostuser $Containeruser $Containeruserhome $Cachefolder
bash "$Containerrc" & Pid1pid=$!
;;
proot|chroot)
Expand Down Expand Up @@ -8526,14 +8527,15 @@ ${2:-}" ; shift ;; # Add custo
--cachebasedir) Cachebasefolder="${2:-}" ; shift ;; # Set base folder for cache instead of ~/.cache/x11docker

#### Verbosity options
-D|--debug) Debugmode="yes" ;; # Debugging mode
-v|--verbose) Verbose="${2:-yes}" ; shift ;; # Be verbose
-V) Verbose="${Verbose:-yes}"; Verbosecolors="yes";; # Be verbose with colored output
-q|--quiet) Silent="yes" ;; # Do not show warnings or errors
--printenv) Showdisplayenvironment="${2:-yes}" ; shift ;; # Output of display number and cookie file on stdout. Catch with: read xenv < <(x11docker --printenv)
--printid) Showcontainerid="${2:-yes}" ; shift ;; # Output of container id on stdout
--printinfofile) Showinfofile="${2:-yes}" ; shift ;; # Show path to $Storeinfofile
--printpid1) Showcontainerpid1pid="${2:-yes}" ; shift ;; # Output of host PID of container PID 1
-D|--debug) Debugmode="yes" ;; # Debugging mode
-v) Verbose="yes" ;; # Be verbose
--verbose) Verbose="${2:-yes}" ; shift ;; # Be verbose
-V) Verbose="${Verbose:-yes}"; Verbosecolors="yes";; # Be verbose with colored output
-q|--quiet) Silent="yes" ;; # Do not show warnings or errors
--printenv) Showdisplayenvironment="${2:-yes}" ; shift ;; # Output of display number and cookie file on stdout. Catch with: read xenv < <(x11docker --printenv)
--printid) Showcontainerid="${2:-yes}" ; shift ;; # Output of container id on stdout
--printinfofile) Showinfofile="${2:-yes}" ; shift ;; # Show path to $Storeinfofile
--printpid1) Showcontainerpid1pid="${2:-yes}" ; shift ;; # Output of host PID of container PID 1

#### Special options not starting X or docker
--build) Buildimage="yes" ;; # Build an image from x11docker repository
Expand Down

0 comments on commit bee1ad1

Please sign in to comment.