[plug] script error

Mr E_T troll at arach.net.au
Thu Jan 12 09:22:57 WST 2006


On Thursday 12 January 2006 08:06, Jon Miller wrote:
> I've tried looking how to construct this and I keep getting the same error
> 
> syntax error near unexpected token `else'
> 
> if [ $fileA == $fileB ]; then                         # compare files
>   echo "FileA and FileB are identical."
>   recreate()                                                 # run function
>   else
>   echo "FileA and FileB differ."
>   chngacct()                                                # run function
> fi
remove the () from the function calls - they are not needed
eg -
function some_func ()
{
  somtyhing
}
some_func arg1 arg2
or
some_func

-- 
regs MR E_T
_______________________
\                      \
  \   OOHH I hate TYPOS  \
    \                      \
      ~~~~~~~~~~~~~~~~~~~~~~~



More information about the plug mailing list