From 3f61fa4a57dbbc9a30f77020e74e59ef052aa026 Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Sat, 25 Jan 2020 06:40:30 +0100 Subject: [PATCH] Cleaning code --- plugins.d/homebrew.sh | 1 + plugins.d/npm.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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"