style: Normalize variable expansions in libs.deprecated/*
These files stay deprecated and out of the sourcing path for now, but
apply the same ${var} notation cleanup as the rest of the repo where
it's a pure notation fix. basedir.bash is left untouched: its bug is
a broken escape, not a notation issue, and it mirrors the one already
removed from _helpers.bash.
This commit is contained in:
@@ -188,7 +188,7 @@ vm_create_magick2() {
|
||||
template=${3}
|
||||
|
||||
# Define ressources based on template
|
||||
case $template in
|
||||
case ${template} in
|
||||
small)
|
||||
vcpus="1,maxvcpus=2"
|
||||
memory="1024,maxmemory=2048"
|
||||
@@ -262,7 +262,7 @@ _hypervisors() {
|
||||
if [ -e ~/.ssh/known_hosts ]; then
|
||||
known_hypervisors=$(cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e 's/,.*//g' | grep -v "\[" | grep -i hypervisor | uniq)
|
||||
fi
|
||||
echo $configured_hypervisors $known_hypervisors
|
||||
echo "${configured_hypervisors}" "${known_hypervisors}"
|
||||
}
|
||||
|
||||
#complete -W "$(cat ~/.ssh/config | egrep -i "^\s*host\s+[a-zA-Z]" | sed -e "s/^host\s*//i" | grep -i hypervisor)" hypervisor_connect
|
||||
|
||||
Reference in New Issue
Block a user