Fix firestarter killing itself because it exists
This commit is contained in:
		@@ -274,9 +274,13 @@ https://gitlab.com/rehashedsalt/firestarter
 | 
			
		||||
EOF
 | 
			
		||||
}
 | 
			
		||||
step_check() {
 | 
			
		||||
	if pgrep firestarter > /dev/null 2>&1 && [ -z "$dryrun" ]; then
 | 
			
		||||
	if [ -z "$dryrun" ]; then
 | 
			
		||||
		for pid in $(pgrep firestarter); do
 | 
			
		||||
			if [ "$pid" != "$BASHPID" ]; then
 | 
			
		||||
				err "Firestarter is already running" 61
 | 
			
		||||
			fi
 | 
			
		||||
		done
 | 
			
		||||
	fi
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
step_preexecute() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user