mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-30 17:23:44 -04:00
portability fixes for ssc script courtesy of Ulrich Spoerlein
This commit is contained in:
parent
1292992f6f
commit
14626a0174
@ -22,32 +22,21 @@ flac_file() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
FILE=$1
|
FILE=$1
|
||||||
OFFSET=0
|
OFFSET=${2:-0}
|
||||||
|
|
||||||
if [ "$2" == "" ]; then
|
|
||||||
OFFSET=0
|
|
||||||
else
|
|
||||||
OFFSET=$2
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$3" != "" ]; then
|
if [ "$3" != "" ]; then
|
||||||
FORGELEN="-l $3"
|
FORGELEN="-l $3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ( echo $1 | grep -i "\.ogg$" > /dev/null 2>&1 ); then
|
case "$1" in
|
||||||
ogg_file
|
*.[oO][gG][gG])
|
||||||
exit;
|
ogg_file
|
||||||
fi
|
;;
|
||||||
|
*.[fF][lL][aA][cC])
|
||||||
if ( echo $1 | grep -i "\.flac$" > /dev/null 2>&1 ); then
|
flac_file
|
||||||
flac_file
|
;;
|
||||||
exit;
|
*)
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# here you could cat a generic "error" wav...
|
# here you could cat a generic "error" wav...
|
||||||
#
|
|
||||||
#
|
|
||||||
# cat /path/to/error.wav
|
# cat /path/to/error.wav
|
||||||
#
|
;;
|
||||||
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user