Fix Linux Mint codename
This commit is contained in:
@@ -1641,9 +1641,9 @@ update_self() {
|
|||||||
# Download the latest version of the script
|
# Download the latest version of the script
|
||||||
install_package --silent wget
|
install_package --silent wget
|
||||||
if command -v wget &>/dev/null; then
|
if command -v wget &>/dev/null; then
|
||||||
wget -q -O "$tmp" "$script_url"
|
execute wget -q -O "$tmp" "$script_url"
|
||||||
elif command -v curl &>/dev/null; then
|
elif command -v curl &>/dev/null; then
|
||||||
curl -s -L -o "$tmp" "$script_url"
|
execute curl -s -L -o "$tmp" "$script_url"
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -1654,6 +1654,8 @@ update_self() {
|
|||||||
local remote_version
|
local remote_version
|
||||||
remote_version=$(extract_version "$tmp")
|
remote_version=$(extract_version "$tmp")
|
||||||
|
|
||||||
|
debug HERE
|
||||||
|
|
||||||
[[ -z $remote_version ]] && { rm -f "$tmp"; return 1; }
|
[[ -z $remote_version ]] && { rm -f "$tmp"; return 1; }
|
||||||
|
|
||||||
if [[ $local_version < $remote_version ]]; then
|
if [[ $local_version < $remote_version ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user