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

nuxsh: Fixed bug in generation of temporary name.

Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
Tony Tkáčik 2019-03-22 00:33:58 +01:00
parent 61beaba966
commit 539cf02ac7

View file

@ -141,9 +141,11 @@ 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" | md5sum | cut -d" " -f1)
#FIXME: check if nux_cache should be used.
nux.nuxsh.use "$NUX_SCRIPT" "/tmp/$compilefile.nuxr.nuxsh";
compilefile="/tmp/$compilefile.nuxr.nuxsh"
nux.log debug "Compiled script:" $compilefile
nux.nuxsh.use "$NUX_SCRIPT" "$compilefile";
NUX_NO_INCLUDE="no-include"
fi