diff --git a/CHANGELOG.md b/CHANGELOG.md index 273b7c24..f2fb5e61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org). +## 3.8.1 + +- Fix installation method detection +- Fix install script + ## 3.8.0 - Support for more manga metadata fields such as summary, genres, tags, and more. diff --git a/constant/build.go b/constant/build.go index b877c9e9..29fec499 100644 --- a/constant/build.go +++ b/constant/build.go @@ -1,6 +1,6 @@ package constant -const Version = "3.8.0" +const Version = "3.8.1" var ( BuiltAt = "Unknown" diff --git a/scripts/install b/scripts/install index 27d13553..3551b393 100755 --- a/scripts/install +++ b/scripts/install @@ -300,7 +300,13 @@ install_binary() { tar -xf "$TAR_FILE" -C "$TMPDIR" - OUT="/usr/bin/" + if [ -d "/usr/local/bin/" ]; + then + OUT="/usr/local/bin/" + else + OUT="/usr/bin/" + fi + info "Moving to ${OUT}" sudo sh -c "install '$TMPDIR/$FILE_BASENAME' '${OUT}'" install_completions "$TMPDIR/completions" diff --git a/updater/detect.go b/updater/detect.go index 04eb9462..95ed47be 100644 --- a/updater/detect.go +++ b/updater/detect.go @@ -40,7 +40,7 @@ func DetectInstallationMethod() InstallationMethod { return Unknown } - if path == "/usr/local/bin/"+constant.Mangal { + if path == "/usr/local/bin/"+constant.Mangal || path == "/usr/bin/"+constant.Mangal { return Script } }