FS#53245 - [flatpak] Invalid syntax in /etc/profile.d/flatpak.sh
Attached to Project:
Arch Linux
Opened by Peter Fern (pdf) - Saturday, 11 March 2017, 00:11 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Tuesday, 21 March 2017, 15:39 GMT
Opened by Peter Fern (pdf) - Saturday, 11 March 2017, 00:11 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Tuesday, 21 March 2017, 15:39 GMT
|
Details
Description:
Line 7 of /etc/profile.d/flatpak.sh uses invalid comparison operator: elif [ "${XDG_DATA_DIRS#*flatpak}" == "${XDG_DATA_DIRS}" ]; then Should be a single equals sign. Not sure how to tell if this comes from upstream or Arch. Additional info: * package version: 0.8.4-1 Patch attached Steps to reproduce: * Spawn a shell that imports /etc/profile.d/*.sh Output: /etc/profile.d/flatpak.sh:7: = not found |
This task depends upon
Closed by Bartłomiej Piotrowski (Barthalion)
Tuesday, 21 March 2017, 15:39 GMT
Reason for closing: Fixed
Tuesday, 21 March 2017, 15:39 GMT
Reason for closing: Fixed
"==" is a bashism, so I'm assuming you're running a non-bash compatible shell. It should definitely be fixed, though.
https://github.com/flatpak/flatpak/pull/619