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>pull/1516/head
parent
7fddcad8ea
commit
53be0980be
|
@ -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