.bashrc syntax error: unexpected end of file

前端 未结 8 746

I am getting an unexpected end of file error. I am not really sure how to fix it.

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bash         


        
8条回答
  •  被撕碎了的回忆
    2021-01-05 15:33

    Just open the file from terminal by gedit .bashrc The document will open ,go to the bottom and see if fi is missing there,if it is not there add it.Just put "fi" at the left margin at the last and close all the commands with "fi".see here

提交回复
热议问题