13 lines
		
	
	
	
		
			288 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			288 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/zsh
 | |
| if [[ ! -e ${0:A:h}/server ]] then
 | |
| 	<<-ERROR
 | |
| 	Service requires configuration!
 | |
| 	Create \`${0:A:h}/server\` containing the target server name
 | |
| 	ERROR
 | |
| 	exit 1
 | |
| fi
 | |
| source ${0:A:h:h}/import-env.zsh
 | |
| import-env awesome || exit 1
 | |
| 
 | |
| exec 2>&1
 | |
| exec barrierc --no-daemon $(<${0:A:h}/server)
 | 
