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
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"