#1787 incorrect shell specification fixed + corrected syntax
This commit is contained in:
parent
e1ea881649
commit
c601df2ec1
1 changed files with 15 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Copyright (c) 2004 Media Development Loan Fund
|
# Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
@ -482,50 +482,50 @@ usage(){
|
||||||
echo -e " preferences\n playlists\n storage\n"
|
echo -e " preferences\n playlists\n storage\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$COMM" == "test" ]; then
|
if [ "$COMM" = "test" ]; then
|
||||||
login
|
login
|
||||||
test
|
test
|
||||||
logout
|
logout
|
||||||
elif [ "$COMM" == "existsAudioClip" ]; then
|
elif [ "$COMM" = "existsAudioClip" ]; then
|
||||||
login
|
login
|
||||||
existsAudioClip
|
existsAudioClip
|
||||||
logout
|
logout
|
||||||
elif [ "$COMM" == "accessRawAudioData" ]; then
|
elif [ "$COMM" = "accessRawAudioData" ]; then
|
||||||
login
|
login
|
||||||
accessRawAudioData
|
accessRawAudioData
|
||||||
logout
|
logout
|
||||||
elif [ "$COMM" == "storeAudioClip" ]; then
|
elif [ "$COMM" = "storeAudioClip" ]; then
|
||||||
login
|
login
|
||||||
storeAudioClip
|
storeAudioClip
|
||||||
logout
|
logout
|
||||||
elif [ "$COMM" == "deleteAudioClip" ]; then
|
elif [ "$COMM" = "deleteAudioClip" ]; then
|
||||||
login
|
login
|
||||||
deleteAudioClip
|
deleteAudioClip
|
||||||
logout
|
logout
|
||||||
elif [ "$COMM" == "updateAudioClipMetadata" ]; then
|
elif [ "$COMM" = "updateAudioClipMetadata" ]; then
|
||||||
login
|
login
|
||||||
updateAudioClipMetadata
|
updateAudioClipMetadata
|
||||||
logout
|
logout
|
||||||
elif [ "$COMM" == "getAudioClip" ]; then
|
elif [ "$COMM" = "getAudioClip" ]; then
|
||||||
login
|
login
|
||||||
getAudioClip
|
getAudioClip
|
||||||
logout
|
logout
|
||||||
elif [ "$COMM" == "searchMetadata" ]; then
|
elif [ "$COMM" = "searchMetadata" ]; then
|
||||||
searchTest
|
searchTest
|
||||||
elif [ "$COMM" == "preferences" ]; then
|
elif [ "$COMM" = "preferences" ]; then
|
||||||
preferenceTest
|
preferenceTest
|
||||||
elif [ "$COMM" == "playlists" ]; then
|
elif [ "$COMM" = "playlists" ]; then
|
||||||
playlistTest
|
playlistTest
|
||||||
elif [ "$COMM" == "webstream" ]; then
|
elif [ "$COMM" = "webstream" ]; then
|
||||||
webstreamTest
|
webstreamTest
|
||||||
elif [ "$COMM" == "storage" ]; then
|
elif [ "$COMM" = "storage" ]; then
|
||||||
storageTest
|
storageTest
|
||||||
elif [ "x$COMM" == "x" ]; then
|
elif [ "x$COMM" = "x" ]; then
|
||||||
storageTest
|
storageTest
|
||||||
playlistTest
|
playlistTest
|
||||||
preferenceTest
|
preferenceTest
|
||||||
searchTest
|
searchTest
|
||||||
elif [ "$COMM" == "help" ]; then
|
elif [ "$COMM" = "help" ]; then
|
||||||
usage
|
usage
|
||||||
else
|
else
|
||||||
echo "Unknown command"
|
echo "Unknown command"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue