Project

General

Profile

« Previous | Next » 

Revision 13282

fix: lib/sh/db.sh: psql(): when using sudo with custom $stdin, raise error that this is not supported

View differences:

trunk/lib/sh/db.sh
292 292
{
293 293
	echo_func; kw_params stdin output_data
294 294
	local can_redir="$(! isset SUDO_USER; exit2bool)"; echo_vars can_redir
295
	if test "$stdin"; then
296
		test "$can_redir" || die 'custom $stdin not supported with sudo'
297
	fi
295 298
	local verbose_="$(test "$can_redir" && can_log; exit2bool)"
296 299
		echo_vars verbose_
297 300
	local data2stdout="$(test "$output_data" -a "$can_redir"; exit2bool)"

Also available in: Unified diff