Adds a check to the shell script that invokes mach for the existence of a Machfile.edn, and exits with an error message if that's not the case. This avoids the error that occurs when mach is invoked accidentally from somewhere where a Machfile isn't available, avoiding the creation of an unnecessary .mach/ directory.
Fixes #58
I had added a (ensure-machfile-exists) function to mach.core before realising that the wrapper script might be a better place to do this check. If you'd prefer to handle this some other way, I'm happy to make whatever changes you'd like.
Adds a check to the shell script that invokes
mach
for the existence of aMachfile.edn
, and exits with an error message if that's not the case. This avoids the error that occurs whenmach
is invoked accidentally from somewhere where aMachfile
isn't available, avoiding the creation of an unnecessary.mach/
directory.Fixes #58
I had added a
(ensure-machfile-exists)
function tomach.core
before realising that the wrapper script might be a better place to do this check. If you'd prefer to handle this some other way, I'm happy to make whatever changes you'd like.