update ruby's gems in updateSystem fct added

This commit is contained in:
Francois B. (Makoto) 2018-06-13 11:23:46 +02:00
parent 3b4e277927
commit 1868392053

View file

@ -259,6 +259,20 @@ function updateSystem () {
retCode $ret_code retCode $ret_code
fi fi
if which gem >/dev/null; then
printf "[GEM] updating --system "
printf "\n[GEM] updating --system\n" &>> $logFile
sudo gem update --system &>> $logFile
ret_code=$?
retCode $ret_code
printf "[GEM] updating gems "
printf "\n[GEM] updating gems\n" &>> $logFile
sudo gem update &>> $logFile
ret_code=$?
retCode $ret_code
fi
repoAdded=0 repoAdded=0
} }