diff --git a/tools/composer-update-monorepo.sh b/tools/composer-update-monorepo.sh index 224f198ac147d..97e25d1de5b27 100755 --- a/tools/composer-update-monorepo.sh +++ b/tools/composer-update-monorepo.sh @@ -25,9 +25,9 @@ function check_dir { return 1 elif [[ -d "$1" ]]; then DIR="${1%/}" - elif [[ "$1" == "*/composer.json" && -f "$1" ]]; then # DWIM + elif [[ "$1" == */composer.json && -f "$1" ]]; then # DWIM DIR="$(dirname "$1")" - elif [[ "$1" == "*/composer.lock" && -f "$1" ]]; then # DWIM + elif [[ "$1" == */composer.lock && -f "$1" ]]; then # DWIM DIR="$(dirname "$1")" else error "Directory $1 does not exist." diff --git a/tools/version-packages.sh b/tools/version-packages.sh index e562c8e1c5a06..c76ddec94cc93 100755 --- a/tools/version-packages.sh +++ b/tools/version-packages.sh @@ -35,7 +35,7 @@ function check_dir { error "$DIR does not contain composer.json." return 1 fi - elif [[ "$1" == "*/composer.json" && -f "$1" ]]; then # DWIM + elif [[ "$1" == */composer.json && -f "$1" ]]; then # DWIM DIR="$(dirname "$1")" else error "Directory $1 does not exist."