Return exit code 127 on InAccessibleExecutable.
This commit is contained in:
@@ -114,7 +114,8 @@ public enum ShellError: ErrorType, Equatable {
|
||||
case .ReturnedErrorCode(let code):
|
||||
return code
|
||||
case .InAccessibleExecutable:
|
||||
return EXIT_FAILURE
|
||||
// according to http://tldp.org/LDP/abs/html/exitcodes.html
|
||||
return 127
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user