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
53be0980be65170bb4f2acb3c87b0c1eff8c7acb)
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
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"