etc/profile: set MAGIC only if the magic file exists
commit1e534f0b08d92ed33718c261afc681214a23a99e
authorStefan Naewe <stefan.naewe@gmail.com>
Fri, 14 Oct 2011 11:14:07 +0000 (14 13:14 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 14 Oct 2011 12:00:14 +0000 (14 13:00 +0100)
treee88041ebc304234242c40d7a11baa0112e17417f
parente04fe5497ae08ad7334dbc035321e5e42e458615
etc/profile: set MAGIC only if the magic file exists

commit 006d11d (Help 'file' find its magic file) added the MAGIC
variable to /etc/profile. That makes sense in the msysgit development
envronment but not for the installed version (because 'file' doesn't
get installed).
This checks for the existence of the magic file before setting MAGIC.
That way it's possible to use another 'file', e.g. from Cygwin inside
the git bash.

Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
etc/profile