diff --git a/plugins.d/homebrew.sh b/plugins.d/homebrew.sh index 0569071..6f6cdc7 100755 --- a/plugins.d/homebrew.sh +++ b/plugins.d/homebrew.sh @@ -86,6 +86,7 @@ if [ -x "$(command -v jq)" ]; then done upd3=$(echo "$upd3" | sed 's/.$//') + echo "upd3:$upd3:" if [ -n "$upd3" ]; then # Only 1 request 'brew info' for all updated packages info=$(brew info --json=v1 $upd3) diff --git a/plugins.d/npm.sh b/plugins.d/npm.sh index cc5e98b..1e85385 100755 --- a/plugins.d/npm.sh +++ b/plugins.d/npm.sh @@ -104,10 +104,10 @@ if [ -n "$g_outdated" ]; then if [ "$no_distract" = false ]; then echo "$g_outdated" #echo "$g_outdated" | sed '1d' | awk '{print $1}' | xargs -p -n 1 npm install -g - echo "$g_outdated" | sed '1d' | awk '{print $1}' | xargs -p -n 1 npm update -g + echo "$g_outdated" | sed '1d' | awk '{print $1}' | xargs -p -n 1 npm update -g else #echo "$g_outdated" | sed '1d' | awk '{print $1}' | xargs -n 1 npm install -g - echo "$g_outdated" | sed '1d' | awk '{print $1}' | xargs -n 1 npm update -g + echo "$g_outdated" | sed '1d' | awk '{print $1}' | xargs -n 1 npm update -g fi else echo -e "\033[4mNo global packages updates.\033[0m"