style: minor corrections
This commit is contained in:
parent
8db3100355
commit
e6fe7602b9
4
quickemu
4
quickemu
|
@ -1591,7 +1591,7 @@ fi
|
||||||
QEMU_VER_LONG=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1)
|
QEMU_VER_LONG=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1)
|
||||||
QEMU_VER_SHORT=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1 | sed 's/\.//g' | cut -c1-2)
|
QEMU_VER_SHORT=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1 | sed 's/\.//g' | cut -c1-2)
|
||||||
if [ "${QEMU_VER_SHORT}" -lt 60 ]; then
|
if [ "${QEMU_VER_SHORT}" -lt 60 ]; then
|
||||||
echo "ERROR! Qemu 6.0.0 or newer is required, detected ${QEMU_VER_LONG}."
|
echo "ERROR! QEMU 6.0.0 or newer is required, detected ${QEMU_VER_LONG}."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1736,7 +1736,7 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then
|
||||||
SOCKET_MONITOR="${VMDIR}/${VMNAME}-monitor.socket"
|
SOCKET_MONITOR="${VMDIR}/${VMNAME}-monitor.socket"
|
||||||
SOCKET_SERIAL="${VMDIR}/${VMNAME}-serial.socket"
|
SOCKET_SERIAL="${VMDIR}/${VMNAME}-serial.socket"
|
||||||
|
|
||||||
# if not disk_img is configured, do the right thing.
|
# if disk_img is not configured, do the right thing.
|
||||||
if [ -z "${disk_img}" ]; then
|
if [ -z "${disk_img}" ]; then
|
||||||
disk_img="${VMDIR}/disk.${disk_format}"
|
disk_img="${VMDIR}/disk.${disk_format}"
|
||||||
fi
|
fi
|
||||||
|
|
2
quickget
2
quickget
|
@ -3388,7 +3388,7 @@ I18NS=()
|
||||||
OPERATION=""
|
OPERATION=""
|
||||||
CURL=$(command -v curl)
|
CURL=$(command -v curl)
|
||||||
if [ ! -e "${CURL}" ]; then
|
if [ ! -e "${CURL}" ]; then
|
||||||
echo "ERROR! curl not found. Please make install curl"
|
echo "ERROR! curl not found. Please install curl"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
CURL_VERSION=$("${CURL}" --version | head -1 | cut -d' ' -f2)
|
CURL_VERSION=$("${CURL}" --version | head -1 | cut -d' ' -f2)
|
||||||
|
|
Loading…
Reference in New Issue