apt cache refreshed in yggInit

This commit is contained in:
Francois B 2018-03-16 20:34:10 +01:00
parent bcf09ef324
commit 51dc165aa0

View file

@ -105,6 +105,14 @@ function isMate () {
# TODO: update npm before update/install pkg # TODO: update npm before update/install pkg
# #
function yggInit () { function yggInit () {
typeset ret_code
printf "[APT] update "
printf "\n[APT] update\n" &>> $logFile
sudo apt-get update &>> $logFile
ret_code=$?
retCode $ret_code
if ! which gem >/dev/null; then if ! which gem >/dev/null; then
printf "[INIT][GEM] not found, installing...\n" printf "[INIT][GEM] not found, installing...\n"
printf "\n[INIT][GEM] not found, installing...\n" &>> $logFile printf "\n[INIT][GEM] not found, installing...\n" &>> $logFile