From 9c242a93d104c1bf09ce905a082c047a23705835 Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Thu, 2 Jul 2020 02:25:40 -0500 Subject: [PATCH] Remove unneeded command substitution --- karahti | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/karahti b/karahti index 6ad71cf..ca90616 100755 --- a/karahti +++ b/karahti @@ -42,12 +42,8 @@ while (( $# )); do shift done -tail -n +1 -- "$@" | { - paste=$( - curl -sSA karahti/1.0 -w "%{redirect_url}" -F "paste_content=<-" \ - -F "language=${opts[lang]:-auto}" -F "expiry=${opts[expire]}" \ - https://p.ahti.space/nanopaste-get.cgi - ) +tail -n +1 -- "$@" | curl -sSA karahti/1.0 -w "%{redirect_url}" \ + -F "paste_content=<-" -F "language=${opts[lang]:-auto}" \ + -F "expiry=${opts[expire]}" https://p.ahti.space/nanopaste-get.cgi - printf "%s\n" "$paste" -} +printf "\n"