Re: [AD] Deprecated functions and fix.sh |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Thu, Jun 26, 2003, Jon Rafkind wrote:
> if [ -e configure ]; then
> chmod +x configure
> fi
>
> I get an error here, something like:
> fix.sh: test: Arguement expected.
In order to work on Solaris, -e (which is a bashism) should be
replaced with -f.
> Im not an expert in bash scripting so I cant fix it, but why have the
> if at all? Cant this simply be replaced with
> chmod +x configure
This will work, but it will output an error message if configure
does not exist.
Cheers,
--
Sam.