Thread: Syntax error near unexpected token 'elif'
hi, friend , working on private server running on 10.04 , when run linux_installer.sh error:
here original code file:php code:
linux_installer.sh: line 77: syntax error near unexpected token 'elif'
linux_installer.sh: line 77: ' elif [ "${option}" = "b" ]; then'
i've tried searching answers find when people don't have 'then' included in code after 'elif' command. appreciated.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 -h ${server} --user=${user} --port=${port} --password=${pass} ${ldb} > "$bkpath}/logon_backup.sql"
echo " [backing up logon database] finished…"
mysqldump -h ${server} --user=${user} --port=${port} --password=${pass} ${cdb} > "${bkpath}/character_backup.sql"
echo " [backing up char database] finished…"
echo
écho " [backing up] finished…"
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
Post a Comment