2016-04-02 16 views
0

HAMLファイルが存在しない場合、または古いものと異なる場合は2つのスクリプトを処理するが、実行するたびにこのエラーが表示される。トークンの近くで予期しないエラーが発生しました

while true do; 

    if [ ! -f index_copy.haml ]; then 

     echo "\e[33mCreating 'index_copy.haml' file." 
     cp index.haml index_copy.haml 

     if [ $? -eq 0 ]; then 
      echo "\e[36mDone." 
     else 
      echo "\e[32mError!" 
     fi 

    fi 

    if cmp -s "index.haml" "index_copy.haml" ; then 

     cp index.haml index_copy.haml 
     echo -e "\e[34mProcessing HAML...\n" 
     haml index.haml index.html 
     cd css 
     echo -e "\e[32mProcessing SCSS...\n" 
     sass style.scss style.css 
     cd .. 
     echo -e "\e[36mDone." 

    fi 

done 

答えて

3

最初の行、交換してください:

while true do; 

で:

while true; do 
関連する問題