quickget: create config warning only #TODO
This commit is contained in:
parent
7359380e5b
commit
74bf72730b
5
quickget
5
quickget
|
|
@ -824,8 +824,7 @@ function create_config() {
|
||||||
|
|
||||||
OS="custom"
|
OS="custom"
|
||||||
if ! mkdir "${VM_PATH}" 2>/dev/null; then
|
if ! mkdir "${VM_PATH}" 2>/dev/null; then
|
||||||
echo "ERROR! Could not create directory: ${VM_PATH}. Please verify that it does not already exist"
|
echo "WARNING! This will overwrite content of directory: ${VM_PATH}"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
if [[ "${INPUT}" == "http://"* ]] || [[ "${INPUT}" == "https://"* ]]; then
|
if [[ "${INPUT}" == "http://"* ]] || [[ "${INPUT}" == "https://"* ]]; then
|
||||||
INPUT="$(web_redirect "${INPUT}")"
|
INPUT="$(web_redirect "${INPUT}")"
|
||||||
|
|
@ -840,7 +839,7 @@ function create_config() {
|
||||||
|
|
||||||
if [ ! -f "${INPUT}" ]; then
|
if [ ! -f "${INPUT}" ]; then
|
||||||
echo "ERROR! The input must be a valid URL or path to an ISO, IMG, or QCOW2 file."
|
echo "ERROR! The input must be a valid URL or path to an ISO, IMG, or QCOW2 file."
|
||||||
exit 1
|
echo "#TODO exit 1"
|
||||||
elif [[ "${INPUT}" == *".iso" ]]; then
|
elif [[ "${INPUT}" == *".iso" ]]; then
|
||||||
echo "Moving image to VM dir" && mv "${INPUT}" "${VM_PATH}"
|
echo "Moving image to VM dir" && mv "${INPUT}" "${VM_PATH}"
|
||||||
CUSTOM_IMAGE_TYPE="iso"
|
CUSTOM_IMAGE_TYPE="iso"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue