Skip to content

Commit

Permalink
Merge pull request #3897 from esl/egrep-is-obsolescent
Browse files Browse the repository at this point in the history
  • Loading branch information
Premwoik authored Dec 9, 2022
2 parents 146cab3 + 2afb39b commit d9a5c46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rel/files/mongooseim
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mkdir -p "$RUNNER_LOG_DIR"
export ERL_CRASH_DUMP="${RUNNER_LOG_DIR}/erl_crash.dump"

# Extract the target node name from node.args
NAME_ARG=`egrep -e '^-s?name' "$RUNNER_ETC_DIR"/vm.args`
NAME_ARG=`grep -E '^-s?name' "$RUNNER_ETC_DIR"/vm.args`
if [ -z "$NAME_ARG" ]; then
echo "vm.args needs to have either -name or -sname parameter."
exit 1
Expand Down
4 changes: 2 additions & 2 deletions rel/files/mongooseimctl
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ SCRIPTS_DIR="$MIM_DIR"/scripts
EJABBERD_STATUS_PATH="{{mongooseim_status_dir}}/status"
export EJABBERD_STATUS_PATH="$EJABBERD_STATUS_PATH"

COOKIE_ARG=`grep -e '^-setcookie' "$EJABBERD_VMARGS_PATH"`
COOKIE_ARG=`grep '^-setcookie' "$EJABBERD_VMARGS_PATH"`
if [ -z "$COOKIE_ARG" ]; then
echo "vm.args needs to have a -setcookie parameter."
exit 1
fi

NODENAME_ARG=`egrep -e '^-s?name' "$EJABBERD_VMARGS_PATH"`
NODENAME_ARG=`grep -E '^-s?name' "$EJABBERD_VMARGS_PATH"`
if [ -z "$NODENAME_ARG" ]; then
echo "vm.args needs to have either -name or -sname parameter."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion tools/gh-actions-configure-preset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ case "$1" in
esac

if [ ! -z "$GITHUB_ENV" ]; then
env | egrep "^(DB|REL_CONFIG|TLS_DIST|TESTSPEC)=" >> $GITHUB_ENV
env | grep -E "^(DB|REL_CONFIG|TLS_DIST|TESTSPEC)=" >> $GITHUB_ENV
fi

0 comments on commit d9a5c46

Please sign in to comment.