mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-31 10:59:24 +00:00 
			
		
		
		
	Update build.func
tweak
This commit is contained in:
		
							parent
							
								
									1a363ef9a5
								
							
						
					
					
						commit
						0d90ef3ea3
					
				| @ -27,7 +27,7 @@ catch_errors() { | |||||||
| 
 | 
 | ||||||
| # This function is called when an error occurs. It receives the exit code, line number, and command that caused the error, and displays an error message. | # This function is called when an error occurs. It receives the exit code, line number, and command that caused the error, and displays an error message. | ||||||
| error_handler() { | error_handler() { | ||||||
|   if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID; fi |   if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi | ||||||
|   printf "\e[?25h" |   printf "\e[?25h" | ||||||
|   local exit_code="$?" |   local exit_code="$?" | ||||||
|   local line_number="$1" |   local line_number="$1" | ||||||
| @ -58,7 +58,7 @@ msg_info() { | |||||||
| 
 | 
 | ||||||
| # This function displays a success message with a green color. | # This function displays a success message with a green color. | ||||||
| msg_ok() { | msg_ok() { | ||||||
|   if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID; fi |   if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi | ||||||
|   printf "\e[?25h" |   printf "\e[?25h" | ||||||
|   local msg="$1" |   local msg="$1" | ||||||
|   echo -e "${BFR} ${CM} ${GN}${msg}${CL}" |   echo -e "${BFR} ${CM} ${GN}${msg}${CL}" | ||||||
| @ -66,7 +66,7 @@ msg_ok() { | |||||||
| 
 | 
 | ||||||
| # This function displays a error message with a red color. | # This function displays a error message with a red color. | ||||||
| msg_error() { | msg_error() { | ||||||
|   if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID; fi |   if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi | ||||||
|   printf "\e[?25h" |   printf "\e[?25h" | ||||||
|   local msg="$1" |   local msg="$1" | ||||||
|   echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}" |   echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user