Skip to content

Commit 85fb882

Browse files
Merge pull request #1038 from entireio/codex/fix-install-path-conflict-1037
Fix false installer PATH conflict detection
2 parents a819525 + 5417597 commit 85fb882

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ main() {
254254
# Check if the installed binary is the one that will be found in PATH
255255
local path_binary
256256
path_binary=$(command -v "entire" 2>/dev/null || true)
257-
if [[ -n "$path_binary" && "$path_binary" != "$install_path" ]]; then
257+
if [[ -n "$path_binary" && ! "$path_binary" -ef "$install_path" ]]; then
258258
# This case is a bit weird, because some other 'entire' is found on PATH. Warn user.
259259
echo ""
260260
echo -e "${YELLOW}!${NC} ${BOLD}WARNING: PATH conflict detected${NC}"

0 commit comments

Comments
 (0)