From 4148afa53fc664e2ca9261dd853f9c138949f379 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 8 Jan 2018 18:56:55 -0400 Subject: response --- .../comment_3_60154b98f64306e627a417905e2bef73._comment | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment diff --git a/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment b/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment new file mode 100644 index 00000000..e24bc461 --- /dev/null +++ b/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment @@ -0,0 +1,16 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2018-01-08T22:52:51Z" + content=""" +That is what I was suggesting yes. + +Another way to do it is using `cmdProperty'`, for example: + + import Utility.Process + import Propellor.Property.Cmd + + foo = cmdProperty' "apt-get" ["-y", "install", "gitlab"] + (\p -> p { cwd = Just "/tmp" }) + `assume` MadeChange +"""]] -- cgit v1.2.3