Skip to main content

Thread: Syntax error near unexpected token 'elif'


hi, friend , working on private server running on 10.04 , when run linux_installer.sh error:

php code:
linux_installer.shline 77syntax error near unexpected token 'elif'
linux_installer.shline 77'  elif [ "${option}" = "b" ]; then' 
here original code file:

php code:
    elif "${option}"b" ]; then

        
echo
        
rm -rf "${bkpath}/logon_backup.sql"
        
rm -rf "${bkpath}/character_backup.sql"
        
echo " [deleting old backups] finished…"

        
echo
        
mysqldump -${server} --user=${user} --port=${port} --password=${pass} ${ldb} > "$bkpath}/logon_backup.sql"
        
echo " [backing up logon database] finished…"

        
mysqldump -${server} --user=${user} --port=${port} --password=${pass} ${cdb} > "${bkpath}/character_backup.sql"
        
echo " [backing up char database] finished…"

        
echo
        
écho " [backing up] finished…" 
i've tried searching answers find when people don't have 'then' included in code after 'elif' command. appreciated.

if "elif" unexpected problem before it, not after.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Syntax error near unexpected token 'elif'


Ubuntu

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support