Skip to content

Commit

Permalink
Merge pull request #460 from schmonz/portable-shell-string-comparison
Browse files Browse the repository at this point in the history
Check string equality more portably.
  • Loading branch information
hollesse authored Oct 14, 2024
2 parents f37f16b + f456bc7 commit f8e68f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ check_say() {

check_installation_path() {
location="$(command -v mob)"
if [ "$(determine_os)" == "windows" ]; then
if [ "$(determine_os)" = "windows" ]; then
location=$(echo $location | sed -E 's|^/([a-zA-Z])|\U\1:|')
fi
if [ "$location" != "$target/mob" ] && [ "$location" != "" ]; then
Expand Down

0 comments on commit f8e68f2

Please sign in to comment.