Skip to content

Commit e7f3bbd

Browse files
committed
stop reproducible tarball generation command on any failure in the pipe
1 parent ec1ede9 commit e7f3bbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

easybuild/tools/filetools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,6 +2777,8 @@ def get_source_tarball_from_git(filename, target_dir, git_config):
27772777
# create reproducible archive
27782778
# see https://reproducible-builds.org/docs/archives/
27792779
tar_cmd = [
2780+
# stop on failure of any command in the pipe
2781+
'set', '-eo pipefail', ';',
27802782
# print names of all files and folders excluding .git directory
27812783
'find', repo_name, '-name ".git"', '-prune', '-o', '-print0',
27822784
# reset access and modification timestamps to epoch 0

0 commit comments

Comments
 (0)