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
|
if [ -f "$__object/parameter/name" ]; then
|
||||||
name_should="$(cat "$__object/parameter/name")"
|
name_should="$(cat "$__object/parameter/name")"
|
||||||
else
|
else
|
||||||
name_should="$(echo "${__target_host%%.*}")"
|
name_should="${__target_host%%.*}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
os=$(cat "$__global/explorer/os")
|
os=$(cat "$__global/explorer/os")
|
||||||
|
|
|
@ -25,10 +25,10 @@ if [ -f "$__object/parameter/name" ]; then
|
||||||
else
|
else
|
||||||
case "$os" in
|
case "$os" in
|
||||||
openbsd)
|
openbsd)
|
||||||
name_should="$(echo "${__target_host}")"
|
name_should="${__target_host}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
name_should="$(echo "${__target_host%%.*}")"
|
name_should="${__target_host%%.*}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue