richard pushed to branch main at The Tor Project / Applications / RBM
Commits:
-
b5e5b04a
by Nicolas Vigier at 2024-01-24T10:24:19+01:00
2 changed files:
Changes:
... | ... | @@ -21,6 +21,9 @@ abbrev_length:: |
21 | 21 | This option sets the length of the abbreviated commits, when
|
22 | 22 | using the +abbrev+ option.
|
23 | 23 | |
24 | +isatty::
|
|
25 | + This option is true when stdout is connected to a tty.
|
|
26 | + |
|
24 | 27 | tar::
|
25 | 28 | Use this options instead of 'tar' in build scripts when you want
|
26 | 29 | to create deterministic tar files. This options set tar arguments
|
... | ... | @@ -151,6 +151,7 @@ our %default_config = ( |
151 | 151 | debug => 0,
|
152 | 152 | compress_tar => 'gz',
|
153 | 153 | version => "[%- exit_error('No version specified for ' _ project); -%]",
|
154 | + isatty => sub { -t STDOUT },
|
|
154 | 155 | ####
|
155 | 156 | ####
|
156 | 157 | ####
|
... | ... | @@ -577,7 +578,7 @@ set -e |
577 | 578 | END;
|
578 | 579 | -%]
|
579 | 580 | tmpfile="\$(mktemp -p [% shell_quote(rbm_tmp_dir) %])"
|
580 | -wget -O"\$tmpfile" [% shell_quote(c("URL")) %]
|
|
581 | +wget[% IF !c("getting_id") && !c("isatty") %] --no-verbose[% END %] -O"\$tmpfile" [% shell_quote(c("URL")) %]
|
|
581 | 582 | mv -f "\$tmpfile" [% shell_quote(dest_dir _ "/" _ c("filename")) %]
|
582 | 583 | URLGET
|
583 | 584 | sig_ext => [ qw(gpg asc sig) ],
|