1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-13 13:44:28 +01:00

Compare commits

...

2 commits

Author SHA1 Message Date
1644fdda3f nuxsh: Fixed bug in generation of temporary name.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
2019-03-22 00:34:35 +01:00
61beaba966 Added function tracing
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
2019-03-22 00:34:35 +01:00
2 changed files with 3 additions and 1 deletions

View file

@ -141,7 +141,7 @@ if [ -n "$NUX_SCRIPT" ]; then
nux.log debug "Including script: $NUX_SCRIPT"
nux.log trace "NUX_SCRIPT env: " $(set | grep NUX_SCRIPT)
compilefile=$(realpath nux-env | md5sum | cut -d" " -f1)
compilefile=$(realpath "$NUX_SCRIPT" env | md5sum | cut -d" " -f1)
#FIXME: check if nux_cache should be used.
nux.nuxsh.use "$NUX_SCRIPT" "/tmp/$compilefile.nuxr.nuxsh";
NUX_NO_INCLUDE="no-include"

View file

@ -165,8 +165,10 @@ nux.nuxsh.language.def() {
:*) identifier="$_namespace${identifier#:}"
esac;
echo "${indent}$identifier() {";
echo "${indent} nux.log trace $identifier: invoked";
for arg in ${args//,/ }; do
echo "${indent} local $arg="'"$1"'";shift;"
echo "${indent} nux.log trace ' ' arg $arg: "'$'$arg";"
done
}