Quote:
Originally Posted by Carpetsmoker
It's easy to use a config file, just make it a shell script and source (.)
|
It already does, check the latest version:
Code:
[ -f /usr/local/etc/automount.conf ] && . /usr/local/etc/automount.conf
... and an exampe configuration file:
https://github.com/vermaden/automoun...automount.conf
Quote:
Originally Posted by Carpetsmoker
Your script will break if I installed stuff I need/want in /usr/pkg/bin/ or ~/bin/ or .... ?
|
Dunno what script names (ntfs-3g for example) You have in Your PATH ;p
Quote:
Originally Posted by Carpetsmoker
It's not your script's job to fix a potentially broken PATH ...
|
Its my job to SET needed PATH for the script job.
Quote:
Originally Posted by Carpetsmoker
At the very least *append* it, instead of overwriting it.
|
Ok, You convinced me.
Quote:
Originally Posted by Carpetsmoker
I see. It still looks strange You should pick up some other scripting language (Ruby/Perl/Python/...).
|
None of them is in the base, and I wanted to use something from the base system.
Quote:
Originally Posted by Carpetsmoker
I find myself avoiding shell scripting at all costs these days ...
|
I use sh(1) as long as its quite simple, then I try at python(1)