Project

General

Profile

« Previous | Next » 

Revision fdf35e23

Added by Renato Botelho almost 10 years ago

Fix logic to set EVENT_PIPE

View differences:

src/usr/local/sbin/pfSense-upgrade
420 420

  
421 421
trap _exit 1 2 15 EXIT
422 422

  
423
if [ -n "${progress_fifo}" -a ! -p "${progress_fifo}" ]; then
424
	if [ -e "${EVENT_PIPE}" ]; then
423
if [ -n "${progress_fifo}" ]; then
424
	if [ ! -e "${progress_fifo}" ]; then
425
		mkfifo ${progress_fifo}
426
	fi
427
	if [ ! -p "${progress_fifo}" ]; then
425 428
		_echo "ERROR: ${progress_fifo} is not a FIFO"
426 429
		_exit 1
427 430
	fi
428
	mkfifo ${progress_fifo}
429 431
	export EVENT_PIPE="${progress_fifo}"
430 432
fi
431 433

  

Also available in: Unified diff