Skip to content

Fix install.sh error when cwd equals INSTALL_DIR#18

Merged
juhgiyo merged 1 commit intomainfrom
claude/fix-install-same-file
Mar 17, 2026
Merged

Fix install.sh error when cwd equals INSTALL_DIR#18
juhgiyo merged 1 commit intomainfrom
claude/fix-install-same-file

Conversation

@juhgiyo
Copy link
Copy Markdown
Contributor

@juhgiyo juhgiyo commented Mar 17, 2026

Summary

  • Fix mv: 'binary' and 'target/binary' are the same file error during first-time install
  • When strawhub runs install.sh, it sets cwd to the package directory (same as INSTALL_DIR). The mv fails because source and destination are the same file.
  • Skip the mv when both paths resolve to the same absolute path

Test plan

  • Fresh install via strawhub install no longer shows the error

🤖 Generated with Claude Code

When strawhub runs install.sh, it sets cwd to the package directory
which is the same as INSTALL_DIR. The mv command fails with
"'binary' and 'target/binary' are the same file". Skip the mv
when source and destination resolve to the same absolute path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@juhgiyo juhgiyo merged commit fdfc996 into main Mar 17, 2026
1 check passed
@juhgiyo juhgiyo deleted the claude/fix-install-same-file branch March 17, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant