From 51dc165aa012ad79bb879f24975ed21ed05b3d20 Mon Sep 17 00:00:00 2001 From: Francois B Date: Fri, 16 Mar 2018 20:34:10 +0100 Subject: [PATCH] apt cache refreshed in yggInit --- core_functions.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core_functions.sh b/core_functions.sh index 837c31f..0c38565 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -105,6 +105,14 @@ function isMate () { # TODO: update npm before update/install pkg # 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 printf "[INIT][GEM] not found, installing...\n" printf "\n[INIT][GEM] not found, installing...\n" &>> $logFile