properly use mktemp

This commit is contained in:
AJ ONeal 2018-06-05 01:13:38 -06:00
parent a673e05087
commit df16948bc5
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ http_bash()
{ {
_http_url=$1 _http_url=$1
my_args=${2:-} my_args=${2:-}
rm -rf my-tmp-runner.sh my_tmp=$(mktemp)
$_my_http_get $_my_http_opts $_my_http_out my-tmp-runner.sh "$_http_url"; bash my-tmp-runner.sh $my_args; rm my-tmp-runner.sh $_my_http_get $_my_http_opts $_my_http_out "$my_tmp" "$_http_url"; bash "$my_tmp" $my_args; rm "$my_tmp"
} }
detect_http_get detect_http_get