Add some logging
This commit is contained in:
		
							parent
							
								
									2b69fa6622
								
							
						
					
					
						commit
						ba07678b31
					
				@ -84,6 +84,7 @@ case $cmd in
 | 
			
		||||
        if [[ -n $DIRENV_DIR ]]; then
 | 
			
		||||
            # run self in clean environment (i.e. outside of the current direnv
 | 
			
		||||
            # environment)
 | 
			
		||||
            echo "Switching to clean environment"
 | 
			
		||||
            exec direnv exec /proc "${BASH_SOURCE[0]}" "$@"
 | 
			
		||||
        fi
 | 
			
		||||
        echo "Re-creating cache"
 | 
			
		||||
@ -91,6 +92,7 @@ case $cmd in
 | 
			
		||||
        dumpEnv > "${cacheFile}.pre"
 | 
			
		||||
        source <(direnv stdlib)
 | 
			
		||||
        if [[ .envrc -nt ${cacheFile}.recipe ]]; then
 | 
			
		||||
            echo "Re-creating recipe"
 | 
			
		||||
            direnv exec . true > /dev/null
 | 
			
		||||
        fi
 | 
			
		||||
        source "${cacheFile}.recipe"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user