From de2fdf84f8e903eaec95e2fb825b7679f6283cbf Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Sat, 9 Feb 2019 14:07:02 +0000 Subject: [PATCH] 42_npmjs: use sudo in non-interactive mode git-svn-id: https://svn.fhem.de/fhem/trunk@18547 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/42_npmjs.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/42_npmjs.pm b/fhem/FHEM/42_npmjs.pm index 4b3651ed1..4ed585fde 100644 --- a/fhem/FHEM/42_npmjs.pm +++ b/fhem/FHEM/42_npmjs.pm @@ -480,10 +480,10 @@ sub ExecuteNpmCommand($) { } else { $npm->{npmupdate} = - $cmdPrefix . 'echo n | sudo npm update -g --unsafe-perm' . $cmdSuffix; + $cmdPrefix . 'echo n | sudo -n npm update -g --unsafe-perm' . $cmdSuffix; $npm->{npmoutdated} = $cmdPrefix - . 'echo n | node --version; sudo npm outdated -g --parseable' + . 'echo n | node --version; sudo -n npm outdated -g --parseable' . $cmdSuffix; }