mirror of https://github.com/ceph/ceph-ansible.git
generate_group_vars_sample: do not use expr
As mentionned in https://github.com/koalaman/shellcheck/wiki/SC2003
expr is antiquated.
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 53be0980be
)
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/1539/head
parent
932496d8de
commit
e5a61cf97e
|
@ -36,7 +36,7 @@ EOF
|
|||
sed '/^---/d; s/^\([A-Za-z[:space:]]\)/#\1/' \
|
||||
"$defaults" >> "$basedir"/group_vars/"$output"
|
||||
echo >> "$basedir"/group_vars/"$output"
|
||||
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||||
elif [ "$(uname -s)" == "Linux" ]; then
|
||||
sed '/^---/d; s/^\([A-Za-z[:space:]].\+\)/#\1/' \
|
||||
"$defaults" >> "$basedir"/group_vars/"$output"
|
||||
echo >> "$basedir"/group_vars/"$output"
|
||||
|
|
Loading…
Reference in New Issue