mirror of
				https://gitlab.com/ceda_ei/wish
				synced 2025-11-04 12:20:07 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			429 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			429 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
function wish_exit_code_start() {
 | 
						|
	return 0
 | 
						|
}
 | 
						|
 | 
						|
function wish_exit_code_end() {
 | 
						|
	return 0
 | 
						|
}
 | 
						|
 | 
						|
function wish_exit_code_set_colors() {
 | 
						|
	WISH_EXIT_CODE_FG=${WISH_EXIT_CODE_FG:-$WISH_DEFAULT_FG}
 | 
						|
	WISH_EXIT_CODE_BG=${WISH_EXIT_CODE_BG:-$WISH_DEFAULT_BG}
 | 
						|
}
 | 
						|
 | 
						|
function wish_exit_code_main() {
 | 
						|
	if [[ $1 == 0 ]]; then
 | 
						|
		wish_append $WISH_EXIT_CODE_BG $WISH_EXIT_CODE_FG ""
 | 
						|
	else
 | 
						|
		wish_append $WISH_EXIT_CODE_BG $WISH_EXIT_CODE_FG $1
 | 
						|
	fi
 | 
						|
}
 |