Fix Linux Mint codename
This commit is contained in:
@@ -1617,6 +1617,8 @@ update_self() {
|
|||||||
echo "$version_line"
|
echo "$version_line"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo HERE
|
||||||
|
|
||||||
# Check if we're in a git directory and if it's the installJRMC repository
|
# Check if we're in a git directory and if it's the installJRMC repository
|
||||||
if git -C "$SCRIPT_DIR" rev-parse --is-inside-work-tree &>/dev/null \
|
if git -C "$SCRIPT_DIR" rev-parse --is-inside-work-tree &>/dev/null \
|
||||||
&& [[ "$(git -C "$SCRIPT_DIR" config --get remote.origin.url)" == *"bryan/installJRMC"* ]]; then
|
&& [[ "$(git -C "$SCRIPT_DIR" config --get remote.origin.url)" == *"bryan/installJRMC"* ]]; then
|
||||||
@@ -1638,6 +1640,8 @@ update_self() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo HERE2
|
||||||
|
|
||||||
# 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
|
||||||
@@ -1648,6 +1652,8 @@ update_self() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo HERE3
|
||||||
|
|
||||||
# Compare versions and update if necessary
|
# Compare versions and update if necessary
|
||||||
local local_version
|
local local_version
|
||||||
local_version=$(extract_version "$SCRIPT_PATH")
|
local_version=$(extract_version "$SCRIPT_PATH")
|
||||||
|
|||||||
Reference in New Issue
Block a user