Skip to content

Commit d9f8720

Browse files
committed
setup: fix 24.04 problem
bash syntax hell, split it into two if statements as running _versionCompare() has side-effects that messes up $1 Signed-off-by: Øyvind Harboe <[email protected]>
1 parent d012f05 commit d9f8720

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

etc/DependencyInstaller.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ _installUbuntuPackages() {
126126
zlib1g-dev
127127

128128
# install KLayout
129-
if [[ $1 == "rodete" || $(_versionCompare "$1") -ge 23.04 ]]; then
129+
if [[ $1 == "rodete" ]]; then
130+
apt-get -y install --no-install-recommends klayout python3-pandas
131+
elif _versionCompare "$1" -ge 23.04; then
130132
apt-get -y install --no-install-recommends klayout python3-pandas
131133
else
132134
arch=$(uname -m)

0 commit comments

Comments
 (0)