Skip to content

Commit

Permalink
Use git show instead of cat
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigitsu committed Feb 17, 2024
1 parent 2bfe074 commit e299422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ for version in "${versions[@]}"; do
variantAliases=( "${variantAliases[@]//latest-/}" )
fi

erlangVersion="$(cat $dir/Dockerfile | extractErlangVersion )"
erlangVersion="$(git show "$commit":"$dir/Dockerfile" | extractErlangVersion )"
otpVersionAndVariant="otp-${erlangVersion}"

if [ "$otpVersionAndVariant" != "$variant" ]; then
Expand Down

0 comments on commit e299422

Please sign in to comment.