Commit 329b0ca8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix SUDO using

parent 68d2983c
......@@ -138,6 +138,7 @@ __epm_addkey_deb()
local fingerprint="$2"
if [ -z "$fingerprint" ] ; then
assure_exists curl
set_sudo
showcmd "curl -fsSL '$url' | $SUDO apt-key add -"
a= curl -fsSL "$url" | sudorun apt-key add -
return
......
......@@ -91,10 +91,9 @@ esac;
case $PMTYPE in
apt-dpkg)
assure_exists apt-add-repository software-properties-common
# FIXME: it is possible there is troubles to pass the args
showcmd apt-add-repository --remove "$*"
set_sudo
$SUDO apt-add-repository --remove "$*"
# FIXME: it is possible there is troubles to pass the args
sudocmd apt-add-repository --remove "$*"
info "Check file /etc/apt/sources.list if needed"
;;
aptitude-dpkg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment