Commit 98841eb6 authored by Dave Reisner's avatar Dave Reisner
Browse files

common: remove unreachable statement

We run from a non-interactive shell, so the exec which is inevitably
called will replace the current process and 'die' will never run under
any circumstances.

This also fixes a bug with the su fallback which would cause multiple
arguments to be concatenated without any whitespace between them.
parent be00fcd4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -240,5 +240,4 @@ check_root() {
	else
		exec su root -c "$(printf ' %q' "$@")"
	fi
	die 'This script must be run as root.'
}