Skip to content

Commit

Permalink
Do not use cygpath
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwutingfeng authored and gregorriegler committed Oct 6, 2024
1 parent 3060346 commit 2693ce2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,10 @@ check_say() {

check_installation_path() {
location="$(command -v mob)"
target_location="$target/mob"
if [ "$(determine_os)" == "windows" ]; then
location="$(cygpath -m "$location")"
target_location="${target_location}.exe"
location=$(echo $location | sed -E 's|^/([a-zA-Z])|\U\1:|; s|/|/|g')
fi
if [ "$location" != "$target_location" ] && [ "$location" != "" ]; then
if [ "$location" != "$target/mob" ] && [ "$location" != "" ]; then
echo "(!) The installation location doesn't match the location of the mob binary."
echo " This means that the binary that's used is not the binary that has just been installed"
echo " You probably want to delete the binary at $location"
Expand Down

0 comments on commit 2693ce2

Please sign in to comment.