Skip to content

Commit

Permalink
Fix empty file warning when uploading env files
Browse files Browse the repository at this point in the history
  • Loading branch information
djmb committed Sep 12, 2023
1 parent 9d49b3e commit 7e7bfc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kamal/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def env_file_with_secrets(env)
end.string

# Ensure the file has some contents to avoid the SSHKIT empty file warning
env_file || "\n"
env_file.presence || "\n"
end

# Returns a list of shell-dashed option arguments. If the value is true, it's treated like a value-less option.
Expand Down

0 comments on commit 7e7bfc3

Please sign in to comment.