Project

General

Profile

« Previous | Next » 

Revision 9439

lib/sh/util.sh: command(): print "command exited with error" message using new die_e() if command returns false. this requires removing manual die_e()/log_e() calls elsewhere.

View differences:

lib/sh/util.sh
559 559
		if test "$verbosity_min"; then verbosity_min "$verbosity_min"; fi
560 560
		
561 561
		exec -- "$@" # -- so cmd name not treated as `exec` option
562
	) || return
562
	) || die_e
563 563
}
564 564

  
565 565
# auto-echo common external commands
......
599 599
	echo_func; kw_params stdout
600 600
	: "${stdout?}"
601 601
	test ! "$if_not_exists" || require_not_exists "$stdout" || return 0
602
	"$@" >"$stdout" || { save_e; log_e; rm "$stdout"; rethrow; }
602
	"$@" >"$stdout" || { save_e; rm "$stdout"; rethrow; }
603 603
}
604 604
alias to_file='"to_file" ' # last space alias-expands next word
605 605

  

Also available in: Unified diff