Merge "Redirect STDOUT to STDERR in virsh script"
This commit is contained in:
commit
46df5d4076
@ -23,7 +23,7 @@ if type "virsh" > /dev/null; then
|
|||||||
virsh domblklist $vm |
|
virsh domblklist $vm |
|
||||||
awk 'NF==2 {print $1}' |
|
awk 'NF==2 {print $1}' |
|
||||||
grep -v Target |
|
grep -v Target |
|
||||||
xargs -I{} virsh change-media $vm {} --eject || : 1>&2
|
xargs -I{} virsh change-media $vm {} --eject 1>&2 || : 1>&2
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "Can't find virsh" 1>&2
|
echo "Can't find virsh" 1>&2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user