Skip to content

Commit

Permalink
Allow use of pipefail
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden authored and cmuench committed Jun 17, 2022
1 parent e0da09c commit d0d9f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/N98/Util/Exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function run($command, &$output = null, &$returnCode = null)
throw new RuntimeException($message);
}

if (OperatingSystem::isBashCompatibleShell() && self::isPipefailOptionAvailable()) {
if (self::isPipefailOptionAvailable()) {
$command = self::SET_O_PIPEFAIL . $command;
}

Expand Down
1 change: 1 addition & 0 deletions src/N98/Util/OperatingSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public static function getCurrentPhpBinary()
}

/**
* @deprecated 5.1.1 No longer used by internal code
* @return bool
*/
public static function isBashCompatibleShell()
Expand Down

0 comments on commit d0d9f14

Please sign in to comment.