Fix empty file warning when uploading env files

This commit is contained in:
Donal McBreen
2023-09-12 11:54:47 +01:00
parent 9d49b3e391
commit c651de177f
2 changed files with 5 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ module Kamal::Utils
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.