Distribution of security fixes
Distribution of security fixes
Posted Sep 5, 2004 16:22 UTC (Sun) by k8to (guest, #15413)In reply to: Distribution of security fixes by EricBackus
Parent article: Distribution of security fixes
Maybe you really like your script, but it seems problemed to me. It's possible to want a dir to a path which does not currently exist. Also, it will not work on some versions of sh which do not support the 'function keyword'.
Pesonally I'd seperate add_to_path from add_to_manpath to produce the simple:
add_to_path() { if [ "$PATH"x == x ]; then PATH=$1; fi if [ "$2" == atstart ]; then PATH=$1:$PATH else; PATH=$PATH:$1; fi }But I suppose, each to his own.