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:
parent
61beaba966
commit
539cf02ac7
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue