Skip to content

Commit

Permalink
fixed parsing error with multiple -- (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Jul 30, 2018
1 parent a100ac9 commit 57474fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,8 @@ $Customenvironment" ; shift ;; # set custom environm
--) shift
[ "$(cut -c1 <<< "${1:-}")" = "-" ] && grep -q " -- " <<< "$*" && {
Customdockeroptions="$(sed 's/ -- .*//' <<< "$*" )"
Imagecommand="$(sed -n 's/^.* -- //p' <<< "$*" )"
Line="$*"
Imagecommand="${Line#$Customdockeroptions -- }"
Imagename="$(cut -d ' ' -f1 <<< "$Imagecommand")"
Imagecommand="$(cut -d ' ' -f2- -s <<< "$Imagecommand")"
break
Expand Down Expand Up @@ -6062,7 +6063,7 @@ $(tail $Compositorlogfile)"
--vcxsrv)
Tasklistold="
$(tasklist.exe | rmcr | grep vcxsrv.exe | awk '{print $2}')"
$Mksu "exec $Xcommand 2>&1 | rmcr >> $Xinitlogfile &"
$Mksu "exec env MSYS2_ARG_CONV_EXCL='*' $Xcommand 2>&1 | rmcr >> $Xinitlogfile &"
case $Winsubsystem in
MSYS|CYGWIN)
Tasklistnew="$Tasklistold
Expand Down

0 comments on commit 57474fa

Please sign in to comment.