Cleaning code

This commit is contained in:
2020-01-25 06:40:30 +01:00
parent 648bd9d211
commit 3f61fa4a57
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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"