From 613d5e696770ba76bb4cd6545d91fa7f0e43b6c3 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 27 Jan 2020 11:34:37 +0200 Subject: [PATCH] kiss: use heredoc --- .editorconfig | 7 +++++++ kiss | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7b8413b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,7 @@ +root = true + +# Force GitHub to display tabs +# mixed with [4] spaces properly. +[kiss] +indent_style = tab +indent_size = 4 diff --git a/kiss b/kiss index 07c4dca..bd95417 100755 --- a/kiss +++ b/kiss @@ -71,7 +71,9 @@ dosu() { # command allows you to input a password via stdin. To hide # the prompt, the command's output is sent to '/dev/tty' # 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() {