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.
This commit is contained in:
parent
be00fcd47b
commit
98841eb694
|
@ -240,5 +240,4 @@ check_root() {
|
|||
else
|
||||
exec su root -c "$(printf ' %q' "$@")"
|
||||
fi
|
||||
die 'This script must be run as root.'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue