Remove unneeded command substitution

This commit is contained in:
Nick Chambers 2020-07-02 02:25:40 -05:00
parent 6da8accf45
commit 9c242a93d1
1 changed files with 4 additions and 8 deletions

12
karahti
View File

@ -42,12 +42,8 @@ while (( $# )); do
shift shift
done done
tail -n +1 -- "$@" | { tail -n +1 -- "$@" | curl -sSA karahti/1.0 -w "%{redirect_url}" \
paste=$( -F "paste_content=<-" -F "language=${opts[lang]:-auto}" \
curl -sSA karahti/1.0 -w "%{redirect_url}" -F "paste_content=<-" \ -F "expiry=${opts[expire]}" https://p.ahti.space/nanopaste-get.cgi
-F "language=${opts[lang]:-auto}" -F "expiry=${opts[expire]}" \
https://p.ahti.space/nanopaste-get.cgi
)
printf "%s\n" "$paste" printf "\n"
}