Open b1ek opened 1 month ago
True. This is fairly needed. The checks should be added by default but also we need to let developers disable adding them as well.
We should probably also only focus on the dependencies of the Amber runtime. Trying to extract and automatically detect script specific dependencies seems like a bigger problem.
This problem is currently being resolved by @b1ek as a separate project https://github.com/b1ek/bshchk.
Im pretty sure that amber depends on things like
bc
,sed
and[[
, and possibly other script-specific dependencies.Wouldn't it make sense to add a checker in the start of the program to ensure that all of them are there? That would prevent A LOT of runtime errors, as well as ensure safety