Skip to content

Commit 0866392

Browse files
authored
Merge pull request swiftlang#95 from graydon/chflags-does-not-exist-on-linux
[common] Make call to chflags platform-conditional on Darwin
2 parents 3ac65bd + 9bf4e24 commit 0866392

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: common.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ def git_submodule_update(path, stdout=sys.stdout, stderr=sys.stderr):
344344
def git_clean(path, stdout=sys.stdout, stderr=sys.stderr):
345345
"""Perform a git clean operation on a path."""
346346
command = ['git', '-C', path, 'clean', '-ffdx']
347-
check_execute(['chflags', '-R', 'nouchg', path], stdout=stdout, stderr=stderr)
347+
if platform.system() == 'Darwin':
348+
check_execute(['chflags', '-R', 'nouchg', path], stdout=stdout, stderr=stderr)
348349
return check_execute(command, stdout=stdout, stderr=stderr)
349350

350351

0 commit comments

Comments
 (0)