ci: Escape $ in heredoc in MSHV workflow script

This is a preexisting bug in the MSHV integration tests,
but previously it only caused a warning.  With commit
Fixes: 5b67b8994a ("ci: Use set -eufo pipefail") it becomes an error.

Fixes: 5b67b8994a ("ci: Use set -eufo pipefail")
Fixes: #7996
Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
This commit is contained in:
Demi Marie Obenour
2026-04-12 05:58:50 -04:00
committed by Bo Chen
parent 23a980cd54
commit 8b212aafc0

View File

@@ -67,12 +67,12 @@ jobs:
echo "Setting permissions..."
for i in 0 1 2; do
dev="/dev/vhost-vdpa-$i"
if [ -e "$dev" ]; then
sudo chown $USER:$USER "$dev"
sudo chmod 660 "$dev"
dev="/dev/vhost-vdpa-\$i"
if [ -e "\$dev" ]; then
sudo chown \$USER:\$USER "\$dev"
sudo chmod 660 "\$dev"
else
echo "Warning: Device $dev not found"
echo "Warning: Device \$dev not found"
fi
done