From 2ff841af9da1cb00340c0ed53d807edb44245577 Mon Sep 17 00:00:00 2001 From: Ronan Keryell Date: Tue, 2 Apr 2024 17:03:59 -0700 Subject: [PATCH] Remove bash-ism from post-installation script which breaks install This was introduced with commit 2b870279f68f7f2b3d08315b7269acbdc1c6033c from https://github.com/Xilinx/XRT/pull/8008 --- src/CMake/config/postinst.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMake/config/postinst.in b/src/CMake/config/postinst.in index bd8130edd12..f8b4587242d 100755 --- a/src/CMake/config/postinst.in +++ b/src/CMake/config/postinst.in @@ -80,12 +80,12 @@ done rmmodules DRACUT_CONF_PATH=/etc/dracut.conf.d -if [ -e $DRACUT_CONF_PATH ] && [ $alveo == 1]; then +if [ -e $DRACUT_CONF_PATH ] && [ $alveo -eq 1 ]; then install -m 644 /usr/src/xrt-@XRT_VERSION_STRING@/driver/xocl/userpf/xocl.dracut.conf $DRACUT_CONF_PATH install -m 644 /usr/src/xrt-@XRT_VERSION_STRING@/driver/xocl/mgmtpf/xclmgmt.dracut.conf $DRACUT_CONF_PATH fi -if [ $alveo == 0]; then +if [ $alveo -eq 0 ]; then echo "Skipping XRT Alveo driver install" exit 0 fi