Minors bugfixs

This commit is contained in:
2021-02-06 08:13:46 +01:00
parent 32b861a8f1
commit 555c362e30
3 changed files with 31 additions and 9 deletions

View File

@@ -22,8 +22,9 @@ display_info=true
# Set doctor=true to run 'npm doctor' and 'npm cache verify' each time
doctor=true
# Local install
local_path=$HOME/Sites/node_modules/
# Local install:
# run 'npm init' in local_path to create package.json
local_path=$HOME/Sites/
#########################################
@@ -162,10 +163,8 @@ if [ -d "$local_path" ]; then
echo -e "\n${underline}🌿 Updating local packages...${reset}\n"
if [ "$no_distract" = false ]; then
#echo "$outdated"
echo "$outdated" | awk '{print $1}' | xargs -p -n 1 npm update
else
#echo "$outdated"
echo "$outdated" | awk '{print $1}' | xargs -n 1 npm update
fi
@@ -207,6 +206,11 @@ if [ -n "$glong_outdated" ]; then
echo -e "$glong_outdated\n"
echo -e "\n${underline}🌿 Updating global packages...${reset}\n"
# Disable: Would you like to share anonymous usage data with the Angular Team at Google ?
if [[ " $glong_outdated " =~ "angular" ]]; then
export NG_CLI_ANALYTICS="false"
fi
while IFS= read -r line
do
pkg=$(echo "$line" | awk '{print $1}')
@@ -214,8 +218,8 @@ if [ -n "$glong_outdated" ]; then
outdated="$pkg@$vers"
# TEST
version=$(echo "$line" | awk '{print $1 "@" $4}')
echo "$version"
#version=$(echo "$line" | awk '{print $1 "@" $4}')
#echo "$version"
# /test
if [ "$no_distract" = false ]; then