Skip to content

Commit

Permalink
Allow selecting the binary using JULIA environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jheinen committed Jan 5, 2023
1 parent cfad7b3 commit b2a6a12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mplay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function realpath {
}

MPLAY_HOME=$(dirname $(realpath "$0"))
julia="${JULIA:-julia}"

function usage()
{
Expand Down Expand Up @@ -49,4 +50,4 @@ if [ "$file" == "" ]; then
exit 1
fi

env MIDI_DEVICE=${device} julia ${MPLAY_HOME}/${interface}.jl "${file}"
env MIDI_DEVICE=${device} ${julia} ${MPLAY_HOME}/${interface}.jl "${file}"

0 comments on commit b2a6a12

Please sign in to comment.