Skip to content

Commit b39d096

Browse files
committed
,run-qemu: use correct variable for exit status of qemu-img
1 parent 0429aa5 commit b39d096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

,run-qemu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ qemucmd="qemu-system-x86_64 -M q35 -cpu host -accel $accel
165165

166166
if [ ! -f ${vmrootfile} ]; then
167167
run qemu-img create -f qcow2 ${vmrootfile} ${vmrootsz} ||
168-
err 1 "error creating ${vmrootfile}: $!"
168+
err 1 "error creating ${vmrootfile}: $?"
169169
fi
170170

171171
run $qemucmd "$@"

0 commit comments

Comments
 (0)