Skip to content

Commit

Permalink
Fix copy-pasted error message in pre-build.sample
Browse files Browse the repository at this point in the history
The "No git remote set" error message was appropriate for the previous
block (where it was presumably copy-pasted from), but in this line we
have failed the check that determines if we have a git branch checked
out, so we should output a corresponding error.
  • Loading branch information
rmacklin authored Oct 8, 2023
1 parent 83a2d52 commit f96d071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kamal/cli/templates/sample_hooks/pre-build.sample
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi
current_branch=$(git branch --show-current)

if [ -z "$current_branch" ]; then
echo "No git remote set, aborting..." >&2
echo "Not on a git branch, aborting..." >&2
exit 1
fi

Expand Down

0 comments on commit f96d071

Please sign in to comment.