mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 16:40:07 -07:00
kiss: use heredoc
This commit is contained in:
parent
d43673e340
commit
613d5e6967
7
.editorconfig
Normal file
7
.editorconfig
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
# Force GitHub to display tabs
|
||||||
|
# mixed with [4] spaces properly.
|
||||||
|
[kiss]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
4
kiss
4
kiss
@ -71,7 +71,9 @@ dosu() {
|
|||||||
# command allows you to input a password via stdin. To hide
|
# command allows you to input a password via stdin. To hide
|
||||||
# the prompt, the command's output is sent to '/dev/tty'
|
# the prompt, the command's output is sent to '/dev/tty'
|
||||||
# and the output of 'su' is sent to '/dev/null'.
|
# and the output of 'su' is sent to '/dev/null'.
|
||||||
echo "$pass" | su "${drop_to:-root}" -c "$* >/dev/tty" >/dev/null
|
su "${drop_to:-root}" -c "$* >/dev/tty" <<-EOF >/dev/null
|
||||||
|
$pass
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_lint() {
|
pkg_lint() {
|
||||||
|
Loading…
Reference in New Issue
Block a user