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
|
||||
"apt")
|
||||
printf "[APT] Installing by $pkg "
|
||||
printf "\n[APT] installing by $pkg\n" &>> $logFile
|
||||
printf "[APT] Installing $pkg "
|
||||
printf "\n[APT] installing $pkg\n" &>> $logFile
|
||||
sudo apt-get install -fy $pkg &>> $logFile
|
||||
ret_code=$?
|
||||
retCode $ret_code
|
||||
|
@ -273,8 +273,8 @@ function installPackage () {
|
|||
;;
|
||||
"pip")
|
||||
if which pip3 >/dev/null; then
|
||||
printf "[PIP] Installing by $pkg "
|
||||
printf "\n[PIP] installing by $pkg\n" &>> $logFile
|
||||
printf "[PIP] Installing $pkg "
|
||||
printf "\n[PIP] installing $pkg\n" &>> $logFile
|
||||
sudo -H pip3 install --upgrade $pkg &>> $logFile
|
||||
ret_code=$?
|
||||
retCode $ret_code
|
||||
|
@ -288,8 +288,8 @@ function installPackage () {
|
|||
;;
|
||||
"npm")
|
||||
if which npm >/dev/null; then
|
||||
printf "[NPM] Installing by $pkg "
|
||||
printf "\n[NPM] installing by $pkg\n" &>> $logFile
|
||||
printf "[NPM] Installing $pkg "
|
||||
printf "\n[NPM] installing $pkg\n" &>> $logFile
|
||||
sudo npm install -g $pkg &>> $logFile
|
||||
ret_code=$?
|
||||
retCode $ret_code
|
||||
|
@ -302,8 +302,8 @@ function installPackage () {
|
|||
;;
|
||||
"gem")
|
||||
if which gem >/dev/null; then
|
||||
printf "[GEM] Installing by $pkg "
|
||||
printf "\n[GEM] installing by $pkg\n" &>> $logFile
|
||||
printf "[GEM] Installing $pkg "
|
||||
printf "\n[GEM] installing $pkg\n" &>> $logFile
|
||||
sudo gem install $pkg &>> $logFile
|
||||
ret_code=$?
|
||||
retCode $ret_code
|
||||
|
@ -316,8 +316,8 @@ function installPackage () {
|
|||
;;
|
||||
"snap")
|
||||
if which snap >/dev/null; then
|
||||
printf "[SNAP] Installing by $pkg "
|
||||
printf "\n[SNAP] installing by $pkg\n" &>> $logFile
|
||||
printf "[SNAP] Installing $pkg "
|
||||
printf "\n[SNAP] installing $pkg\n" &>> $logFile
|
||||
sudo snap install $pkg --classic &>> $logFile
|
||||
ret_code=$?
|
||||
retCode $ret_code
|
||||
|
|
Loading…
Reference in a new issue