summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-01-03 22:49:57 -0800
committerMichael Forney <mforney@mforney.org>2017-01-03 22:49:57 -0800
commit38d0eb124d1e4fa1bc15c0f72dd59d7803ca78a9 (patch)
tree7fa46168a46951f53019e31ffc0fba8f782b5bca /scripts
parentdd8a9ea6794f12a56f8232a62b9e0f47c529bb1d (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-xscripts/fetch-curl.rc2
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
}