Deleted some trailing whitespace, added some explicit return values, fixed formatting in exec_com
This commit is contained in:
parent
7e033f0089
commit
0a8a045b29
8
qq2clone
8
qq2clone
|
@ -497,7 +497,6 @@ xml="$(virt-xml "$@" <<<"$(read_pipe)" 2>/dev/null)" ||
|
|||
write_pipe 1 <<<"$xml"
|
||||
return 0
|
||||
}
|
||||
|
||||
#=========================================================================#
|
||||
find_tag ()
|
||||
# DESCRIPTION: Use xmllint to do an xpath search of xml and write_pipe
|
||||
|
@ -2084,6 +2083,7 @@ else
|
|||
echo -n "all crashed idle in-shutdown off paused pmsuspended running"
|
||||
echo " saved"
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
#=========================================================================#
|
||||
load_template ()
|
||||
|
@ -2388,10 +2388,7 @@ shift
|
|||
|
||||
local verbose_coms
|
||||
verbose_coms="config|check|list|list-templates|exec|edit|modify-template"
|
||||
if (( OPT[QUIET] == 2)) &&
|
||||
[[ ! "$com" =~ ^($verbose_coms)$
|
||||
]];
|
||||
then
|
||||
if (( OPT[QUIET] == 2)) && [[ ! "$com" =~ ^($verbose_coms)$ ]]; then
|
||||
exec &>/dev/null
|
||||
fi
|
||||
|
||||
|
@ -2997,6 +2994,7 @@ hr ()
|
|||
#=========================================================================#
|
||||
{
|
||||
echo ----------------------------------------------------------------------
|
||||
return 0
|
||||
}
|
||||
#=========================================================================#
|
||||
parse_flags ()
|
||||
|
|
Loading…
Reference in New Issue