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:
Bryan Schumaker 2012-06-02 13:16:39 -04:00
parent 7816dea1cf
commit 7390c65d63
1 changed files with 2 additions and 2 deletions

View File

@ -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