Update condition to copy sample hooks #723
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If .kamal/hooks file exists but sample hooks are deleted.
kamal init
command is not creating sample hooks.Results for /bin/test
Finished in 274.016546s, 1.5291 runs/s, 4.6713 assertions/s. 419 runs, 1280 assertions, 0 failures, 0 errors, 0 skips
Step 1:
Step 2:
git status On branch main Changes to be committed: (use "git restore --staged <file>..." to unstage) new file: .kamal/hooks/post-deploy.sample new file: .kamal/hooks/post-traefik-reboot.sample new file: .kamal/hooks/pre-build.sample new file: .kamal/hooks/pre-connect.sample new file: .kamal/hooks/pre-deploy.sample new file: .kamal/hooks/pre-traefik-reboot.sample new file: config/deploy.yml
Delete sample hook files now. Keep the folder.
Step 3:
kamal init Created configuration file in config/deploy.yml
Delete folder as well.
Step 4: