Skip to content

Commit

Permalink
dialog is hard to use inside $(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsks committed Oct 7, 2013
1 parent 3fecd05 commit 59284d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virt-pick
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
tmpfile=$(mktemp -t .virtpickXXXXXX)
virsh list --name "$@" | grep -v '^$' > $tmpfile

dialog --menu "Select a domain" 40 60 30 $(sed = < $tmpfile) 2> $tmpfile.selected
sed -n $(cat $tmpfile.selected)p $tmpfile
Xdialog --menu "Select a domain" 40 60 30 $(sed = < $tmpfile) 2> $tmpfile.selected

sed -n "$(tail -1 $tmpfile.selected)p" $tmpfile
rm -f $tmpfile $tmpfile.selected

0 comments on commit 59284d9

Please sign in to comment.