If you think is a good idea, I think that it make no sense define die() for each script, instead let's put the die function into a file called common as packer/jambonz-mini/scripts/common and each script will source the common file at the beginning as:
source common
So this file will be a collection of functions that all scripts can share.
For example, if all scripts work with the /usr/local/src directory you can put into common something like
mkdir -p /usr/local/src
chmod 777 /usr/local/src
If only few scripts use /usr/local/src you can do:
Hello Dave,
in the issue #26 I talked about
die
If you think is a good idea, I think that it make no sense define
die()
for each script, instead let's put thedie
function into a file calledcommon
aspacker/jambonz-mini/scripts/common
and each script will source the common file at the beginning as:So this file will be a collection of functions that all scripts can share.
For example, if all scripts work with the
/usr/local/src
directory you can put intocommon
something likeIf only few scripts use
/usr/local/src
you can do:and call in each script you need:
Thanks