Syntax error near unexpected token `elif'

前端 未结 5 2048
悲&欢浪女
悲&欢浪女 2021-01-03 22:01
./chkf: line 30: syntax error near unexpected token `elif\'
\'/chkf: line 30: `elif [ -f \"$object\" ] ; then


if [ -d \"$object\" ] ; then
    message=\"$message a         


        
5条回答
  •  一向
    一向 (楼主)
    2021-01-03 22:44

    I got below error in my mail when i set up cron for magento.

    /bin/sh: -c: line 0: syntax error near unexpected token `newline'
    /bin/sh: -c: line 0: `php /home/pooja/public_html/magento/journal/cron1.php >'
    

    I found solution for that is i remove newline space from my cron1.php file. and its work.

    (source)

提交回复
热议问题