mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-04 03:27:06 -05:00 
			
		
		
		
	[fix] posix compatibility
This commit is contained in:
		
							parent
							
								
									0f518e489e
								
							
						
					
					
						commit
						1d5afa4ccc
					
				
							
								
								
									
										10
									
								
								manage.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								manage.sh
									
									
									
									
									
								
							@ -71,7 +71,7 @@ locales() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
help() {
 | 
					help() {
 | 
				
			||||||
    [ -z "$1" ] || echo -e "Error: $1\n"
 | 
					    [ -z "$1" ] || printf "Error: $1\n"
 | 
				
			||||||
    echo "Searx manage.sh help
 | 
					    echo "Searx manage.sh help
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Commands
 | 
					Commands
 | 
				
			||||||
@ -90,8 +90,6 @@ Commands
 | 
				
			|||||||
"
 | 
					"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -n "$(type -t $ACTION)" ] && [ "$(type -t $ACTION)" = function ]; then
 | 
					[ "$(command -V "$ACTION" | grep ' function$')" != "" ] \
 | 
				
			||||||
    $ACTION
 | 
					    && $ACTION \
 | 
				
			||||||
else
 | 
					    || help "action not found"
 | 
				
			||||||
    help "action not found"
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user