Skip to content

Commit

Permalink
Inspect composer_command instead
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Jan 25, 2024
1 parent 78786ef commit 781d9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/composer_install.sh
Expand Up @@ -19,7 +19,7 @@ esac

# If there is no composer.lock file, then use the `update` command.
if [ -z "${composer_lock}" ]; then
if [ "${dependency_versions}" == locked ] && [ "${require_lock_file}" == true ]; then
if [ "${composer_command}" == install ] && [ "${require_lock_file}" == true ]; then
echo "::error title=Composer Lock File Not Found::Unable to find 'composer.lock'"
exit 1
fi
Expand Down

0 comments on commit 781d9b5

Please sign in to comment.