Bottles: Fix btre.

This commit is contained in:
Dmitry Voronin 2025-01-06 13:05:49 +03:00
parent e41076f373
commit b7d1e1eb12
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -15,7 +15,8 @@ function btc() {
# Run a file inside a bottle.
# Usage: btre <EXE> [EXTRA]
function btre() {
bottles-cli run -b "${SHELL_NAME}" -e "${@}"
local exe=$(realpath "${1}")
bottles-cli run -b "${SHELL_NAME}" -e "${exe}" "${@:2}"
}
# Run a program inside a bottle.