Remove unneeded command substitution
This commit is contained in:
parent
6da8accf45
commit
9c242a93d1
12
karahti
12
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"
|
||||
|
|
Loading…
Reference in New Issue