Skip to content

Commit

Permalink
Remove bash-ism from post-installation script which breaks install
Browse files Browse the repository at this point in the history
This was introduced with commit
2b87027 from
#8008
  • Loading branch information
keryell committed Apr 3, 2024
1 parent 34ceebc commit 2ff841a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMake/config/postinst.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ff841a

Please sign in to comment.