1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 08:30:05 -07:00

kiss: use heredoc

This commit is contained in:
Dylan Araps 2020-01-27 11:34:37 +02:00
parent d43673e340
commit 613d5e6967
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 10 additions and 1 deletions

7
.editorconfig Normal file
View 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
View File

@ -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() {