package/environment-setup/environment-setup: add zsh
authorKrzysztof Kanas <kkanas@fastmail.com>
Thu, 2 Sep 2021 11:28:50 +0000 (13:28 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 11 Sep 2021 14:58:28 +0000 (16:58 +0200)
commit65cee90cc3cec4da11987370ea2de35d32f046b5
tree84a63bed4b7ae29721961e4c76e45df34b2d032e
parent5ae9526b0ce528116709e03083425bfcedeb49cc
package/environment-setup/environment-setup: add zsh

environment-setup uses BASH_SOURCE which is bash specific. For other
shells, this variable is empty, leading to an error message and empty
SDK_PATH.
Zsh Uses $0. Unfortunately POSIX is not specifying how exactly $0
should behave when in sourced (or using special dot utility). So other
shell support have to be implemented in different manner.

Signed-off-by: Krzysztof Kanas <kkanas@fastmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/environment-setup/environment-setup