Skip to content

Commit bbda71c

Browse files
committed
tools: use basename when setting executable bit in make_executable
1 parent 705156f commit bbda71c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rapid7/tools/install_insight_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def make_executable(filepath: str) -> None:
5151
Args:
5252
filepath: Path to file to make executable
5353
"""
54-
os.chmod(filepath, 0o755)
54+
os.chmod(os.path.basename(filepath), 0o755)
5555

5656

5757
def verify_agent_running() -> bool:

0 commit comments

Comments
 (0)