mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Bo Chen
parent
23a980cd54
commit
8b212aafc0
10
.github/workflows/mshv-integration.yaml
vendored
10
.github/workflows/mshv-integration.yaml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user