m2.sh Fehler

08/09/2013 23:24 mey97#1
Hey Leute ,
wenn ich m2 start eingebe (Invoice Unbugged Files) kommt
PHP Code:
/var/runscripts/m2.shCommand not found
Wenn ich dann
PHP Code:
sh /var/runscripts/m2.sh 
eingebe kommt
PHP Code:
/var/runscripts/m2.sh7Syntax error"elif" unexpected (expecting "then"
hier die m2.sh
PHP Code:
#!/bin/sh
if [ "$1" != '' ]
then
    
if [ $'start' ]
    
then
        cd 
/usr/home/game && sh start.sh
    elif 
[ $'stop' ];then
        cd 
/usr/home/game && sh close.sh
    clear
    elif 
[ $'lg' ];then
        cd 
/usr/home/game && sh clear.sh
    elif 
[ $'quest' ];then
        cd 
/usr/home/game/quest && python make.py
    elif 
[ $'help-en' ];then
        
echo 'Syntax: m2 <command>'
        
echo 'Example: m2 start'
        
echo 'Commands:'
        
echo ' start - Starts the 2013 files'
        
echo ' stop - Stops the 2013 files'
        
echo ' lg - Deletes the logs'
        
echo ' quest - Compiles the Quests'
        
echo ''
        
echo 'Orginal Script by Daroo'
        
echo 'Modified by xGr33n'
    
elif [ $'help-de' ];then
        
echo 'Syntax: m2 <Kommando>'
        
echo 'Beispiel: m2 start'
        
echo 'Verfuegbare Kommandos:'
        
echo ' start - Startet die 2013 Files'
        
echo ' stop - Stopt die 2013 Files'
        
echo ' lg - Loescht die Logs'
        
echo ' quest - Laedt die Quests neu'
        
echo ''
        
echo 'Orginal Script von Daroo'
        
echo 'Bearbeitet von xGr33n'
    
elif [ $'help-es' ];then
        
echo 'Syntax: m2 <comando>'
        
echo 'Ejemplo: m2 start'
        
echo 'Comandos:'
        
echo ' start - Iniciar los Serverfiles 2013'
        
echo ' stop - Parar los Serverfiles 2013'
        
echo ' lg -  Borrar los logs'
        
echo ' quest - quest'
        
echo ''
        
echo 'Script Original por Daroo'
        
echo 'Modificado por xGr33n de Elitepvpers'
        
echo 'Traducido a Espańol por Vampirito'
    
fi
else
    echo 
'Type "m2 help-en" to show the help!'
    
echo 'Schreibe "m2 help-de" um die Hilfe anzuzeigen!'
    
echo 'Escriba "m2 help-es" Para mostrar la ayuda!'
    
exit
fi 
Leute bitte helft mir bin seit Stunden am suchen doch finde keine Lösung.