diff options
author | Bo Ørsted Andresen <zlin@exherbo.org> | 2016-07-18 19:57:46 +0200 |
---|---|---|
committer | Bo Ørsted Andresen <zlin@exherbo.org> | 2016-07-18 20:06:41 +0200 |
commit | c1642348ba28ccffaecd9a2c53bf8304e9ad3584 (patch) | |
tree | f351fbb8866d3d817f2d56479384624efc0f87c2 | |
parent | 91b323742d312c14a2dbb8224fa245cfb3e2510f (diff) | |
download | wgetpaste-c1642348ba28ccffaecd9a2c53bf8304e9ad3584.tar.gz |
Always tail.
-rwxr-xr-x | wgetpaste | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |