update ruby's gems in updateSystem fct added
This commit is contained in:
parent
3b4e277927
commit
1868392053
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue