umake ppa and app check at init

This commit is contained in:
shakasan 2018-03-20 03:44:55 +01:00
parent 80841e342e
commit 875fe42ada

View file

@ -108,8 +108,11 @@ function yggInit () {
typeset ret_code
if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -q ubuntu-make; then
printf "[INIT]"
printf "[INIT][UMAKE] PPA not found, adding PPA...\n"
printf "[INIT][UMAKE] PPA not found, adding PPA...\n" &>> $logFile
addPPA "ppa:ubuntu-desktop/ubuntu-make"
else
printf "[INIT][UMAKE] PPA found [ ""$BOLDVERT""OK"$NORMAL" ] \n"
fi
printf "[APT] update "
@ -118,6 +121,17 @@ function yggInit () {
ret_code=$?
retCode $ret_code
printf "[INIT]"
installPackage apt "apt-transport-https"
if ! which umake >/dev/null; then
printf "[INIT][UMAKE] not found, installing...\n"
printf "\n[INIT][UMAKE] not found, installing...\n" &>> $logFile
installPackage apt "ubuntu-make"
else
printf "[INIT][UMAKE] found [ ""$BOLDVERT""OK"$NORMAL" ] \n"
fi
if ! which gem >/dev/null; then
printf "[INIT][GEM] not found, installing...\n"
printf "\n[INIT][GEM] not found, installing...\n" &>> $logFile
@ -142,9 +156,6 @@ function yggInit () {
printf "[INIT][NPM] found [ ""$BOLDVERT""OK"$NORMAL" ] \n"
fi
printf "[INIT]"
installPackage apt "apt-transport-https"
if ! which pip3 >/dev/null; then
printf "[INIT][PIP] not found, installing...\n"
printf "\n[INIT][PIP] not found, installing...\n" &>> $logFile