Project

General

Profile

« Previous | Next » 

Revision 9472

lib/sh/util.sh: to_file(): reworded confusing || conditional for require_not_exists into an if statement

View differences:

lib/sh/util.sh
611 611
{
612 612
	echo_func; kw_params stdout
613 613
	: "${stdout?}"
614
	test ! "$if_not_exists" || require_not_exists "$stdout" || return 0
614
	if "$if_not_exists"; then require_not_exists "$stdout" || return 0; fi
615 615
	"$@" >"$stdout" || { save_e; rm "$stdout"; rethrow; }
616 616
}
617 617
alias to_file='"to_file" ' # last space alias-expands next word

Also available in: Unified diff