aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-27 09:34:36 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-27 09:34:36 +0000
commitbc9688e0a6f424f903565bd75e94cbaa774c5675 (patch)
tree3d5889acd27a99e85ef8ca68238f917460413051 /kiss
parent1ed6a15a801de9dc46c0f99d1decfb05de6c27f2 (diff)
downloadcpt-bc9688e0a6f424f903565bd75e94cbaa774c5675.tar.gz
kiss: use heredoc
FossilOrigin-Name: ff4dae791fbafc7fdb82e74413360e0b3deaa57cf8e42874151e0ab896939dd8
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss4
1 files changed, 3 insertions, 1 deletions
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() {