# copy_bin

Copy a binary to the correct location based on OS and user privileges.

```rhai
copy_bin(src: &str) -> String
```

## Examples

```rhai
copy_bin("/tmp/mytool")?;
print("Binary installed");
```

```rhai
download("https://example.com/tool", "/tmp", 1000);
copy_bin("/tmp/tool")?;
```
