summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Ørsted Andresen <zlin@exherbo.org>2016-07-18 19:57:46 +0200
committerBo Ørsted Andresen <zlin@exherbo.org>2016-07-18 20:06:41 +0200
commitc1642348ba28ccffaecd9a2c53bf8304e9ad3584 (patch)
treef351fbb8866d3d817f2d56479384624efc0f87c2
parent91b323742d312c14a2dbb8224fa245cfb3e2510f (diff)
downloadwgetpaste-c1642348ba28ccffaecd9a2c53bf8304e9ad3584.tar.gz
Always tail.
-rwxr-xr-xwgetpaste5
1 files changed, 2 insertions, 3 deletions
diff --git a/wgetpaste b/wgetpaste
index a5a5cc0..afe1720 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -561,9 +561,8 @@ geturl() {
sed -n -e "${!regex}" <<< "$*"
else
[[ needstdout = $1 ]] && return 1
- sed -n -e 's|^.*Location: \(https\{0,1\}://[^ ]*\).*$|\1|p' <<< "$*"\
- | tail -n1
- fi
+ sed -n -e 's|^.*Location: \(https\{0,1\}://[^ ]*\).*$|\1|p' <<< "$*"
+ fi | tail -n1
}
### read cli options