Skip to content

Commit

Permalink
added bash set -e and use fakeroot
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrbrilliant committed Apr 2, 2021
1 parent 8e34008 commit 05c17b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ impl Function {
pub fn exec(&self, pkgdata: &BuildFile) -> Result<(), Box<dyn Error>> {
// pub fn exec(&self, pkgdata: &BuildFile) -> Result<(), Box<dyn Error>> {
// Commands to execute
let mut commands = self.commands.clone();
// let mut commands = self.commands.clone();
let mut commands = Vec::new();
commands.push(String::from("set -e"));
commands.push(String::from("fakeroot"));
commands.append(self.commands.clone().as_mut());
commands.push(String::from("exit"));
let cmds = &self.commands.join("\n").to_string();

Expand Down

0 comments on commit 05c17b4

Please sign in to comment.