minor change
This commit is contained in:
parent
97522021a2
commit
355cb6f121
1 changed files with 10 additions and 10 deletions
|
@ -264,8 +264,8 @@ function installPackage () {
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
"apt")
|
"apt")
|
||||||
printf "[APT] Installing by $pkg "
|
printf "[APT] Installing $pkg "
|
||||||
printf "\n[APT] installing by $pkg\n" &>> $logFile
|
printf "\n[APT] installing $pkg\n" &>> $logFile
|
||||||
sudo apt-get install -fy $pkg &>> $logFile
|
sudo apt-get install -fy $pkg &>> $logFile
|
||||||
ret_code=$?
|
ret_code=$?
|
||||||
retCode $ret_code
|
retCode $ret_code
|
||||||
|
@ -273,8 +273,8 @@ function installPackage () {
|
||||||
;;
|
;;
|
||||||
"pip")
|
"pip")
|
||||||
if which pip3 >/dev/null; then
|
if which pip3 >/dev/null; then
|
||||||
printf "[PIP] Installing by $pkg "
|
printf "[PIP] Installing $pkg "
|
||||||
printf "\n[PIP] installing by $pkg\n" &>> $logFile
|
printf "\n[PIP] installing $pkg\n" &>> $logFile
|
||||||
sudo -H pip3 install --upgrade $pkg &>> $logFile
|
sudo -H pip3 install --upgrade $pkg &>> $logFile
|
||||||
ret_code=$?
|
ret_code=$?
|
||||||
retCode $ret_code
|
retCode $ret_code
|
||||||
|
@ -288,8 +288,8 @@ function installPackage () {
|
||||||
;;
|
;;
|
||||||
"npm")
|
"npm")
|
||||||
if which npm >/dev/null; then
|
if which npm >/dev/null; then
|
||||||
printf "[NPM] Installing by $pkg "
|
printf "[NPM] Installing $pkg "
|
||||||
printf "\n[NPM] installing by $pkg\n" &>> $logFile
|
printf "\n[NPM] installing $pkg\n" &>> $logFile
|
||||||
sudo npm install -g $pkg &>> $logFile
|
sudo npm install -g $pkg &>> $logFile
|
||||||
ret_code=$?
|
ret_code=$?
|
||||||
retCode $ret_code
|
retCode $ret_code
|
||||||
|
@ -302,8 +302,8 @@ function installPackage () {
|
||||||
;;
|
;;
|
||||||
"gem")
|
"gem")
|
||||||
if which gem >/dev/null; then
|
if which gem >/dev/null; then
|
||||||
printf "[GEM] Installing by $pkg "
|
printf "[GEM] Installing $pkg "
|
||||||
printf "\n[GEM] installing by $pkg\n" &>> $logFile
|
printf "\n[GEM] installing $pkg\n" &>> $logFile
|
||||||
sudo gem install $pkg &>> $logFile
|
sudo gem install $pkg &>> $logFile
|
||||||
ret_code=$?
|
ret_code=$?
|
||||||
retCode $ret_code
|
retCode $ret_code
|
||||||
|
@ -316,8 +316,8 @@ function installPackage () {
|
||||||
;;
|
;;
|
||||||
"snap")
|
"snap")
|
||||||
if which snap >/dev/null; then
|
if which snap >/dev/null; then
|
||||||
printf "[SNAP] Installing by $pkg "
|
printf "[SNAP] Installing $pkg "
|
||||||
printf "\n[SNAP] installing by $pkg\n" &>> $logFile
|
printf "\n[SNAP] installing $pkg\n" &>> $logFile
|
||||||
sudo snap install $pkg --classic &>> $logFile
|
sudo snap install $pkg --classic &>> $logFile
|
||||||
ret_code=$?
|
ret_code=$?
|
||||||
retCode $ret_code
|
retCode $ret_code
|
||||||
|
|
Loading…
Reference in a new issue