ygginit python3-distutils for LM19 only + zeal PPA removed
This commit is contained in:
parent
a6612ea590
commit
39e198e10c
2 changed files with 22 additions and 14 deletions
|
@ -79,9 +79,9 @@ function pressKey () {
|
|||
}
|
||||
|
||||
#
|
||||
# check if OS is Mint
|
||||
# check if OS is Mint 18
|
||||
#
|
||||
function isMint () {
|
||||
function isMint18 () {
|
||||
OS=`lsb_release -d | awk -F':' '{print $2}' | awk -F'\t' '{print $2}'`
|
||||
if [[ $OS == *"Linux Mint 18"* ]]; then
|
||||
return 0
|
||||
|
@ -90,6 +90,18 @@ function isMint () {
|
|||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# check if OS is Mint 19
|
||||
#
|
||||
function isMint18 () {
|
||||
OS=`lsb_release -d | awk -F':' '{print $2}' | awk -F'\t' '{print $2}'`
|
||||
if [[ $OS == *"Linux Mint 19"* ]]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# check if DE is Mate
|
||||
#
|
||||
|
@ -168,16 +180,20 @@ function yggInit () {
|
|||
printf "\n[INIT][PIP] not found, installing...\n" &>> $logFile
|
||||
printf "[INIT]"
|
||||
installPackage apt "python3-pip"
|
||||
printf "[INIT]"
|
||||
installPackage apt "python3-distutils"
|
||||
if isMint19; then
|
||||
printf "[INIT]"
|
||||
installPackage apt "python3-distutils"
|
||||
fi
|
||||
printf "[INIT]"
|
||||
installPackage pip "pip"
|
||||
printf "[INIT]"
|
||||
installPackage pip "setuptools"
|
||||
else
|
||||
printf "[INIT][PIP] found [ "$BOLDVERT"OK"$NORMAL" ] \n"
|
||||
printf "[INIT]"
|
||||
installPackage apt "python3-distutils"
|
||||
if isMint19; then
|
||||
printf "[INIT]"
|
||||
installPackage apt "python3-distutils"
|
||||
fi
|
||||
printf "[INIT]"
|
||||
installPackage pip "pip"
|
||||
printf "[INIT]"
|
||||
|
|
|
@ -411,7 +411,6 @@ flacon;addRepo_Flacon
|
|||
y-ppa-manager;addRepo_YPPAManager
|
||||
diodon;addRepo_Diodon
|
||||
sayonara;addRepo_Sayonara
|
||||
zeal;addRepo_Zeal
|
||||
corebird;addRepo_Corebird
|
||||
deluge-torrent;addRepo_Deluge
|
||||
deluge-gtk;addRepo_Deluge
|
||||
|
@ -649,13 +648,6 @@ function addRepo_Corebird () {
|
|||
addPPA ppa:ubuntuhandbook1/corebird
|
||||
}
|
||||
|
||||
#
|
||||
# Zeal
|
||||
#
|
||||
function addRepo_Zeal () {
|
||||
addPPA ppa:zeal-developers/ppa
|
||||
}
|
||||
|
||||
#
|
||||
# Sayonara
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue