diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 3ebe845..07a82cc 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -189,13 +189,13 @@ PIPUPGRADE() { then ${APTFUNC} install jq -y fi - [ "${1}" == "ii" ] && ii=' --ignore-installed' || ii='' + [ "${1}" == "ii" ] && ii='pip3 install --ignore-installed -U' || ii='pip3 install -U' if [ "$EUID" -ne 0 ]; then sudo python3 -m pip install --upgrade pip - sudo pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U ${ii} + sudo pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 ${ii} else python3 -m pip install --upgrade pip - pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U ${ii} + pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 ${ii} fi echo echo -e "${idsCL[Green]}Python-Pip Upgrades has completed${idsCL[Default]}"