addKey add key from server fixed using directly gpg

This commit is contained in:
shakasan 2018-03-16 04:59:58 +01:00
parent 4f6660c0ca
commit bcf09ef324

View file

@ -219,7 +219,7 @@ function addKey () {
printf "[REPO] adding key $2 from $1 "
printf "\n[REPO] adding key $2 from $1\n" &>> $logFile
#sudo apt-key adv --keyserver $1 --recv-keys $2 - &>> $logFile
gpg --keyserver $1 --recv-keys $2 \
gpg --keyserver $1 --recv-keys $2 &>> $logFile \
&& gpg -a --export $2 | sudo apt-key add - &>> $logFile
ret_code=$?
retCode $ret_code