1
0
mirror of https://github.com/arkenfox/user.js.git synced 2025-04-11 20:06:05 +02:00

Fix newline issue when downloading files in updater.sh ()

This commit is contained in:
matthias-z 2022-03-19 07:46:08 +00:00 committed by GitHub
parent d9af90d05f
commit e00497fd51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -106,7 +106,7 @@ Optional Arguments:
download_file() { # expects URL as argument ($1)
declare -r tf=$(mktemp)
$DOWNLOAD_METHOD "${tf}" "$1" && echo "$tf" || echo '' # return the temp-filename or empty string on error
$DOWNLOAD_METHOD "${tf}" "$1" &>/dev/null && echo "$tf" || echo '' # return the temp-filename or empty string on error
}
open_file() { # expects one argument: file_path