Skip to content

Commit 0272ec8

Browse files
committed
Remove bash-ism from post-installation script which breaks install
This was introduced with commit 2b87027 from #8008 Signed-off-by: Ronan Keryell <[email protected]>
1 parent f9572f3 commit 0272ec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMake/config/postinst.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ done
8080
rmmodules
8181

8282
DRACUT_CONF_PATH=/etc/dracut.conf.d
83-
if [ -e $DRACUT_CONF_PATH ] && [ $alveo == 1]; then
83+
if [ -e $DRACUT_CONF_PATH ] && [ $alveo -eq 1 ]; then
8484
install -m 644 /usr/src/xrt-@XRT_VERSION_STRING@/driver/xocl/userpf/xocl.dracut.conf $DRACUT_CONF_PATH
8585
install -m 644 /usr/src/xrt-@XRT_VERSION_STRING@/driver/xocl/mgmtpf/xclmgmt.dracut.conf $DRACUT_CONF_PATH
8686
fi
8787

88-
if [ $alveo == 0]; then
88+
if [ $alveo -eq 0 ]; then
8989
echo "Skipping XRT Alveo driver install"
9090
exit 0
9191
fi

0 commit comments

Comments
 (0)