fix: do not use installer script basename in temporary download directory template
The script may be called anything by the user or curl or bash, so to be a little safer we instead just use a static string for the temporary directory name.
This commit is contained in:
parent
5678d73c4f
commit
9ed527779e
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ if [ "$debug" -eq 1 ]; then
|
|||
fi
|
||||
url="https://github.com/$repo/releases/download/$version/$filename.$ext"
|
||||
|
||||
tmp_path="$(mktemp -t -d "$(basename "$0").XXXXX")"
|
||||
tmp_path="$(mktemp -t -d "flow-control-installer.XXXXX")"
|
||||
|
||||
if [ -z "$tmp_path" ] || [ "$tmp_path" = "/" ]; then
|
||||
echo "failed to create a temporary download directory"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue