diff options
| author | Michael Forney <mforney@mforney.org> | 2017-01-03 22:49:57 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-01-03 22:49:57 -0800 |
| commit | 38d0eb124d1e4fa1bc15c0f72dd59d7803ca78a9 (patch) | |
| tree | 7fa46168a46951f53019e31ffc0fba8f782b5bca /scripts | |
| parent | dd8a9ea6794f12a56f8232a62b9e0f47c529bb1d (diff) | |
fetch-curl: If not specified use */* as extraction pattern
Some pax implementations will fail otherwise if src already exists.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/fetch-curl.rc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/fetch-curl.rc b/scripts/fetch-curl.rc index 08534598..26b26faa 100755 --- a/scripts/fetch-curl.rc +++ b/scripts/fetch-curl.rc @@ -33,6 +33,8 @@ for(archive in `{awk '{print $2}' sha256}) { pats=($pats $1) shift } + if(~ $#pats 0) + pats='*/*' shift if(! ~ $#tool 0) $tool $archive | pax -r -s '/^\.\|[^\/]*/src/' $pats } |
