From 66594ad255963a63ee55caa88ce5fa3a2b5954a1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 12 Sep 2013 00:09:25 +0100 Subject: [PATCH] break out shell_cmd --- dgit | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dgit b/dgit index f77d349b..9768fe93 100755 --- a/dgit +++ b/dgit @@ -209,6 +209,11 @@ sub runcmd_ordryrun { } } +sub shell_cmd { + my ($first_shell, @cmd) = @_; + return qw(sh -ec), $first_shell.'; exec "$@"', 'x', @cmd; +} + our $helpmsg = <