aboutsummaryrefslogtreecommitdiffstats
path: root/mutt
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-06-03 01:45:10 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2017-06-03 01:45:10 +0200
commitdfe9965de98427d26259060233ac3d36d176ed66 (patch)
tree575c61e39c0978fdd10d8537dc163943fbcc4cf1 /mutt
parent6698a1397e782cca41a4bf05a0eea480792934e5 (diff)
downloaddotfiles-dfe9965de98427d26259060233ac3d36d176ed66.tar.xz
mutt/tiny.pl: use curl instead of wget
curl will already be installed on all my systems since pacman uses libcurl. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'mutt')
-rwxr-xr-xmutt/tiny.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/mutt/tiny.pl b/mutt/tiny.pl
index b157372..e33c472 100755
--- a/mutt/tiny.pl
+++ b/mutt/tiny.pl
@@ -33,12 +33,12 @@ while (my $line = shift @text) {
my $alarm = 5;
alarm $alarm;
my $link = uri_escape($link);
- $tinyurl=`wget -q -O - http://tinyurl.com/api-create.php?url=$link`;
+ $tinyurl=`curl -s http://tinyurl.com/api-create.php?url=$link`;
alarm 0;
};
if ($@) {
- $line =~ s/(\w+:\/\/\S+)/$link (wget TimeOut)/; }
+ $line =~ s/(\w+:\/\/\S+)/$link (curl TimeOut)/; }
else { $line =~ s/(\w+:\/\/\S+)/$tinyurl\n\t[>> $link <<]/; }
}
}