Skip to content

Commit

Permalink
restrict grep regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed Jan 9, 2024
1 parent 10efbdc commit fc5608e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/create-env-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ done
PROJECT_CONF=project.yaml

if [[ $APP_NAME != 'root' ]]; then
APP_CONF_PATH=$(source scripts/list-conf-paths.sh --type all | grep --color=never -E "$APP_NAME$|$APP_NAME\"]$")
APP_DIR_PATH=$(source scripts/list-dir-paths.sh --type all | grep --color=never "$APP_NAME$")
APP_CONF_PATH=$(source scripts/list-conf-paths.sh --type all | grep --color=never -E "\.$APP_NAME$|$APP_NAME\"]$")
APP_DIR_PATH=$(source scripts/list-dir-paths.sh --type all | grep --color=never -E "^$APP_NAME$|^.*/$APP_NAME$")
else
APP_CONF_PATH=
APP_DIR_PATH=.
Expand Down

0 comments on commit fc5608e

Please sign in to comment.