pip.sh node.sh

pip.sh: minor bugfix
node.sh: update node
This commit is contained in:
2021-02-11 08:11:23 +01:00
parent 555c362e30
commit d2f5735073
2 changed files with 46 additions and 5 deletions

View File

@@ -122,11 +122,9 @@ if [ -n "$upd" ]; then
x=$(echo "$z" | sed 's/.$//' | sed 's/ /,/g')
# on filtre les lignes (y = asgiref|setuptools|lunr)
y=$(echo "$z" | sed 's/.$//' | sed 's/ /|/g')
#echo "x: $x == y: $y"
dependencies=$(echo "$x" | xargs pipdeptree -r -p | grep -E $y)
echo -e "dependencies:\n $dependencies"
# if [[ $line =~ $y ]]; then
echo -e ""
while IFS= read -r line; do
z=$(echo "${line}" | grep -i ^[a-z])
@@ -141,7 +139,7 @@ if [ -n "$upd" ]; then
echo -e "\n${redbold}${line}${reset}"
fi
elif [[ "${line}" = *"<"* ]]; then
elif [[ "${line}" = *"<"* ]] || [[ "${line}" = *"=="* ]]; then
echo -e "${red}${line}${reset}"
elif [[ "${line}" = *"~="* ]]; then
echo -e "${yellow}${line}${reset}"