Fix path issue

This commit is contained in:
Sonny 2017-07-10 07:15:27 +02:00
parent 00f4e5ca4e
commit 1044497c5f
7 changed files with 23 additions and 18 deletions

View file

@ -46,7 +46,9 @@ create_script() {
'\t -device virtio-serial \' '\n' \
'\t -chardev spicevmc,id=vdagent,name=vdagent \' '\n' \
'\t -device virtserialport,chardev=vdagent,name=com.redhat.spice.0' \
| sed 's/^ *//g' > $FILE
> $HOME/.bin/qemu/$FILE
# Remove leading whitespace
sed -i 's/^ *//g' $HOME/.bin/qemu/$FILE
elif [ "$ANSWER" == "n" ] ;then
echo -e '#!/bin/bash \n' \
'qemu-system-x86_64 -enable-kvm --daemonize \' '\n' \
@ -60,11 +62,9 @@ create_script() {
'\t -device virtio-serial \' '\n' \
'\t -chardev spicevmc,id=vdagent,name=vdagent \' '\n' \
'\t -device virtserialport,chardev=vdagent,name=com.redhat.spice.0' \
| sed 's/^ *//g' > $FILE
> $HOME/.bin/qemu/$FILE
sed -i 's/^ *//g' $HOME/.bin/qemu/$FILE
fi
# Remove trailing whitespace
sed -i 's/\s*$//g' $FILE
}
# Remove GUI options for headless VM