cosmetic changes

This commit is contained in:
Francois B 2018-03-14 12:22:50 +01:00
parent 8f34bb5aae
commit b674a88161

View file

@ -186,13 +186,13 @@ function addKey () {
# #
function addRepo () { function addRepo () {
typeset ret_code typeset ret_code
printf "[REPO] adding : $2 in $1" printf "[REPO] adding : $2 in $1 "
printf "\n[REPO] adding $2 in $1\n" &>> $logFile printf "\n[REPO] adding $2 in $1\n" &>> $logFile
echo $2 | sudo tee /etc/apt/sources.list.d/$1 &>> $logFile echo $2 | sudo tee /etc/apt/sources.list.d/$1 &>> $logFile
ret_code=$? ret_code=$?
retCode $ret_code retCode $ret_code
if [ "$#" -eq 3 ]; then if [ "$#" -eq 3 ]; then
printf "[REPO] adding : $3 in $1" printf "[REPO] adding : $3 in $1 "
printf "\n[REPO] adding $3 in $1\n" &>> $logFile printf "\n[REPO] adding $3 in $1\n" &>> $logFile
echo $3 | sudo tee -a /etc/apt/sources.list.d/$1 &>> $logFile echo $3 | sudo tee -a /etc/apt/sources.list.d/$1 &>> $logFile
ret_code=$? ret_code=$?