Fix SC2116.
This commit is contained in:
parent
5f8c631e34
commit
a601fa91d9
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
|||
if [ -f "$__object/parameter/name" ]; then
|
||||
name_should="$(cat "$__object/parameter/name")"
|
||||
else
|
||||
name_should="$(echo "${__target_host%%.*}")"
|
||||
name_should="${__target_host%%.*}"
|
||||
fi
|
||||
|
||||
os=$(cat "$__global/explorer/os")
|
||||
|
|
|
@ -25,10 +25,10 @@ if [ -f "$__object/parameter/name" ]; then
|
|||
else
|
||||
case "$os" in
|
||||
openbsd)
|
||||
name_should="$(echo "${__target_host}")"
|
||||
name_should="${__target_host}"
|
||||
;;
|
||||
*)
|
||||
name_should="$(echo "${__target_host%%.*}")"
|
||||
name_should="${__target_host%%.*}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue