Skip to content

Commit

Permalink
Remove backslash escapes
Browse files Browse the repository at this point in the history
From `eval --help`:
Execute arguments as a shell command.
Combine ARGs into a single string, use the result as input to the shell, and execute the resulting commands.

This means that we don't need to worry about SC2086 here.
  • Loading branch information
daPhipz committed Apr 19, 2024
1 parent b7c438c commit 6c416e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KubuQA.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ check_existing_vm(){
# Check version and call the command with the correct parameters
if [ "$vbox_version" -lt 7 ]; then
# Version 6
eval "$base_cmd" --ostype=\"Ubuntu \(64-bit\)\" --paravirtprovider=\"$PARAVIRT\"
eval "$base_cmd" --ostype="Ubuntu (64-bit)" --paravirtprovider="$PARAVIRT"
else
# Version 7 or higher
eval "$base_cmd" --os-type=\"Ubuntu_64\" --paravirt-provider=\"$PARAVIRT\"
eval "$base_cmd" --os-type="Ubuntu_64" --paravirt-provider="$PARAVIRT"
fi

#VBoxManage modifyvm "$VM_NAME" --ostype="Ubuntu (64-bit)" --acpi on --nic1 nat --cpus="$VM_CPU_CORES" --memory="$VM_RAM" --paravirtprovider="$PARAVIRT"
Expand Down

0 comments on commit 6c416e0

Please sign in to comment.