remove some useless echo

This commit is contained in:
primardj 2024-01-24 01:05:14 +00:00
parent f4177bdbd4
commit 5f79c47dc2

View file

@ -4,7 +4,7 @@
#RESULT_POSSIBLE=("init","start","start_backup","create","backup","restore","suppr") #RESULT_POSSIBLE=("init","start","start_backup","create","backup","restore","suppr")
# Constante d'éxecutions. # Constante d'éxecutions.
Version="0.6.1" Version="0.6.2"
USAGE="vm-start [ NAME COMMAND [PARAMETER] ] [OPTION] USAGE="vm-start [ NAME COMMAND [PARAMETER] ] [OPTION]
Script to manage virtual machine easily. Script to manage virtual machine easily.
@ -81,8 +81,6 @@ EOF
} }
start_the_vm() { start_the_vm() {
echo "${MAIN_LOCATION}/${LOCATION}/${VMDRIVE}"
echo "$OPTION"
qemu-system-x86_64 \ qemu-system-x86_64 \
-enable-kvm \ -enable-kvm \
-cpu host \ -cpu host \
@ -153,7 +151,6 @@ RESTORE() {
BACKUP() { BACKUP() {
# Should test if the folder ${MAIN_LOCATION}/${LOCATION}/${VMHOSTNAME}.cow exist or else it will arrive an error.
read -p "Are you sure you want to backup the volume? If you continue the previous backup will be lost (y/N) " -r entry read -p "Are you sure you want to backup the volume? If you continue the previous backup will be lost (y/N) " -r entry
if echo "$entry" | grep -q "^[yY]$" if echo "$entry" | grep -q "^[yY]$"
then then
@ -239,8 +236,6 @@ for (( i=3; i<=$#; i++)); do
;; ;;
"create_disk") "create_disk")
INSTALLATION_DISK_LOCATION="${!i#*=}" INSTALLATION_DISK_LOCATION="${!i#*=}"
echo "${!i#*=}"
echo "${INSTALLATION_DISK_LOCATION}"
;; ;;
esac esac
done done