On Tuesday May 19, 2020, Edgar Fuß wrote:
-               X2GO_COMPONENT="$(echo "${compfile}" | cut -d '.' -f '2')"
+               X2GO_COMPONENT="$(echo "$(basename ${compfile})" | cut -d '.' -f 
'2')"
The echo $(...) is redundant, i.e., you want
                X2GO_COMPONENT="$(basename "${compfile}" | cut -d '.' -f '2')"

True. I limited my changes to what was needed to make things work. There's no need for 2 to be in single quotes, either.
_______________________________________________
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev

Reply via email to