scripts: Move ocarina -> %APP
It'll try to run a command passed through the shell, if the command can't be found it'll run %APP-player. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
7816dea1cf
commit
7390c65d63
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
cmd=`which %%OCARINA%%-$1 2>/dev/null`
|
||||
cmd=`which %APP-$1 2>/dev/null`
|
||||
args="${@: +2}"
|
||||
if [ "$cmd" ]; then
|
||||
$cmd "$args"
|
||||
else
|
||||
%%BIN%% "$*"
|
||||
%APP-player "$*"
|
||||
fi
|
Loading…
Reference in New Issue