9 lines
171 B
Bash
9 lines
171 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then
|
|
set -- /usr/local/bin/bun "$@"
|
|
fi
|
|
|
|
exec "$@"
|