summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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