summaryrefslogtreecommitdiffstats
path: root/provision.inc
diff options
context:
space:
mode:
authorAdrian Rossouw2010-07-20 00:54:54 (GMT)
committerAdrian Rossouw2010-07-20 00:54:54 (GMT)
commit8030d4836f3567a6caa643c314cd440b5417117c (patch)
treee5df6126d59664f727034a97e51d4f790b19dfc1 /provision.inc
parent4536b5b4916ee8e937dca68c32067fc42f7da2ea (diff)
Remove the provision_shell_exec function, as the functionality was integrate with drush_shell_exec, and we use that instead.
Diffstat (limited to 'provision.inc')
-rw-r--r--provision.inc17
1 files changed, 0 insertions, 17 deletions
diff --git a/provision.inc b/provision.inc
index 368a5ed..ce182a5 100644
--- a/provision.inc
+++ b/provision.inc
@@ -152,23 +152,6 @@ function _provision_file_check_location($source, $directory = '') {
return $source;
}
-/**
- * Wrapper around drush_shell_exec to provide sprintf functionality with some more safety.
- *
- * @TODO: fix this so we can get error codes and the return values. drush_shell_exec is too
- * limited
- */
-function provision_shell_exec() {
- $args = func_get_args();
-
- //do not change the command itself, just the parameters.
- for ($x = 1; $x < sizeof($args); $x++) {
- $args[$x] = escapeshellcmd($args[$x]);
- }
- $command = call_user_func_array('sprintf', $args);
- drush_log($command);
- return drush_shell_exec($command);
-}
/**
* Check whether a user is a member of a group.