aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-11-13 00:57:46 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-11-13 00:57:46 +1300
commit30c9a0d9cfd679663cc7b14efebdb201e6bf1f49 (patch)
tree56fa8506b183ecbd7cb517ee493ac5627dcac5aa /bin
parentQuote var in param expansion (diff)
downloaddotfiles-30c9a0d9cfd679663cc7b14efebdb201e6bf1f49.tar.gz
dotfiles-30c9a0d9cfd679663cc7b14efebdb201e6bf1f49.zip
Remove unneeded var
Diffstat (limited to 'bin')
-rwxr-xr-xbin/urlc3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/urlc b/bin/urlc
index 0998ad4d..a949f50d 100755
--- a/bin/urlc
+++ b/bin/urlc
@@ -61,8 +61,7 @@ while read -r url ; do
# Form a naïve attempt at a possible secure URL and try to request it,
# point it out if it actually works
- burl=${url#http://}
- surl=https://$burl
+ surl=https://${url#http://}
if curl -A Mozilla -fLsS -D "$head" -m "$tm" -o "$body" -- \
"$surl" 2>/dev/null ; then
printf >&2 '%s: %s has a working secure version at %s\n' \