Permalink
Browse files

Add a newline at the start of appending for pre_postinstall_file

Signed-off-by: Whren <whren@free.fr>
  • Loading branch information...
whren committed Apr 11, 2012
1 parent 915f519 commit 2bbe0848ecc32eecb530507d9e17631bc1e8d4ea
Showing with 5 additions and 1 deletion.
  1. +4 −0 README.md
  2. +1 −1 lib/veewee/provider/core/box/build.rb
View
@@ -52,3 +52,7 @@ People have reported good experiences, why don't you give it a try?
IDEAS:
- Now you integrate this with your CI build to create a daily basebox
+
+[whren - 2012/04/12]
+
+See [use of pre_postinstall_file in defition.rb](https://github.com/whren/veewee/wiki/Use-of-pre_postinstall_file-in-definition.rb)
@@ -207,7 +207,7 @@ def handle_postinstall(options)
transfered = true
self.exec("chmod +x \"#{File.basename(pre_filename)}\"")
# Inject the call to the real script by executing the first argument (it will be the postinstall script file name to be executed)
- self.exec("execute=\"# We must execute the script passed as the first argument\\n\\$1\" && printf \"%b\\n\" \"$execute\" >> #{File.basename(pre_filename)}")
+ self.exec("execute=\"\\n# We must execute the script passed as the first argument\\n\\$1\" && printf \"%b\\n\" \"$execute\" >> #{File.basename(pre_filename)}")
end
command = "./" + File.basename(pre_filename)
command = sudo(command) + " ./"+File.basename(filename)

0 comments on commit 2bbe084

Please sign in to comment.