From ac36474b9bc17eb69181a57440835eec71fa4fab Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 5 Jun 2018 01:13:38 -0600 Subject: [PATCH] properly use mktemp --- usr/share/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/share/install.sh b/usr/share/install.sh index 7b86cb0..28cc583 100644 --- a/usr/share/install.sh +++ b/usr/share/install.sh @@ -61,8 +61,8 @@ http_bash() { _http_url=$1 my_args=${2:-} - rm -rf my-tmp-runner.sh - $_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_tmp=$(mktemp) + $_my_http_get $_my_http_opts $_my_http_out "$my_tmp" "$_http_url"; bash "$my_tmp" $my_args; rm "$my_tmp" } detect_http_get