summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-18 14:03:18 +0000
committerSadie Powell <sadie@witchery.services>2020-01-18 14:25:03 +0000
commit87471ab92dc4c0089d021db3faa27ed2f929fb6b (patch)
tree681fc5f4e988d1342d381bf8af6b8285252a008a /vendor
parent04b5090a2f65a2e3380a32e5cd0b4936716ec394 (diff)
Add a function for showing a command whilst executing it.
Diffstat (limited to 'vendor')
-rwxr-xr-xvendor/update8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/update b/vendor/update
index c57918cb5..6f9ff5e86 100755
--- a/vendor/update
+++ b/vendor/update
@@ -57,14 +57,14 @@ while (my ($name, $info) = each $data) {
my $vendordir = catdir $RealDir, $name;
my $success = 0;
if (defined $info->{git}) {
- $success ||= system 'git', 'clone', $info->{git}, $unpackdir;
+ $success ||= execute 'git', 'clone', $info->{git}, $unpackdir;
chomp(my $tag = `git -C $unpackdir describe --abbrev=0 --tags HEAD 2>/dev/null`) unless $success;
- $success ||= system 'git', '-C', $unpackdir, 'checkout', $tag if $tag;
+ $success ||= execute 'git', '-C', $unpackdir, 'checkout', $tag if $tag;
chomp($info->{version} = `git -C $unpackdir describe --always --tags HEAD 2>/dev/null`);
} elsif (defined $info->{tarball}) {
my $tarball = catfile $unpackdir, basename $info->{tarball};
- $success ||= system 'wget', '--output-document', $tarball, $info->{tarball};
- $success ||= system 'tar', 'fx', $tarball, '-C', $unpackdir, '--strip-components', 1;
+ $success ||= execute 'wget', '--output-document', $tarball, $info->{tarball};
+ $success ||= execute 'tar', 'fx', $tarball, '-C', $unpackdir, '--strip-components', 1;
} else {
print_error "unable to update $name; no git or tarball specified!";
}