apt cache refreshed in yggInit
This commit is contained in:
parent
bcf09ef324
commit
51dc165aa0
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue