micha / resty

Little command line REST client that you can use in pipelines (bash or zsh).
MIT License
2.65k stars 143 forks source link

Update resty #75

Closed extremeshok closed 7 years ago

extremeshok commented 7 years ago

" > " is for string comparisons. Use -gt instead. [SC2071] Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. [SC2166]

I have ignored SC2145 Argument mixes string and array. Use * or separate argument. [SC2145]

[ "$dry" = "yes" ] && echo "curl -sLv $opt \"$dat\" -X $method -b "$cookies/$domain" -c "$cookies/$domain" \"${args2[@]}\" \"${curlopt2[@]}\" \"${curlopt[@]}\" \"$_path$query\"" && return 0
AdrieanKhisbe commented 7 years ago

Thanks @extremeshok, I also applied the shellcheck recommandations in the #50 PR, that is to be landing soon.