mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add shebang to conf and mark it as executable
This commit is contained in:
parent
ab1d9672ac
commit
ac0ad82752
1 changed files with 3 additions and 0 deletions
3
quickget
3
quickget
|
@ -711,10 +711,13 @@ function make_vm_config() {
|
|||
if [ ! -e "${CONF_FILE}" ]; then
|
||||
echo "Making ${CONF_FILE}"
|
||||
cat << EOF > "${CONF_FILE}"
|
||||
#!$(which quickemu) --vm
|
||||
guest_os="${GUEST}"
|
||||
disk_img="${VM_PATH}/disk.qcow2"
|
||||
${IMAGE_TYPE}="${VM_PATH}/${IMAGE_FILE}"
|
||||
EOF
|
||||
echo "Giving user execute permissions on ${CONF_FILE},"
|
||||
chmod u+x "${CONF_FILE}"
|
||||
if [ -n "${ISO_FILE}" ]; then
|
||||
echo "fixed_iso=\"${VM_PATH}/${ISO_FILE}\"" >> "${CONF_FILE}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue