From 1868392053558401373dfa5e44f4203f02c6fbae Mon Sep 17 00:00:00 2001 From: "Francois B. (Makoto)" Date: Wed, 13 Jun 2018 11:23:46 +0200 Subject: [PATCH] update ruby's gems in updateSystem fct added --- core_functions.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core_functions.sh b/core_functions.sh index ef153f4..3a4e5d6 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -259,6 +259,20 @@ function updateSystem () { retCode $ret_code 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 }