update
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
action="$1"
|
action="$1"
|
||||||
FOLDER='/opt/idssys/linupx'
|
FOLDER='/opt/idssys/linupx'
|
||||||
VERS='6.60.12-09032023'
|
VERS='6.60.13-09172023'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -148,13 +148,10 @@ PIPUPGRADE() {
|
|||||||
${APTFUNC} install jq -y
|
${APTFUNC} install jq -y
|
||||||
fi
|
fi
|
||||||
[ "${1}" == "ii" ] && ii=' --ignore-installed' || ii=''
|
[ "${1}" == "ii" ] && ii=' --ignore-installed' || ii=''
|
||||||
if [ "$EUID" -ne 0 ]; then
|
pipupdates=$(pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"')
|
||||||
sudo python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
sudo pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U
|
[ "${pipupdates}" != "" ] && echo ${pipupdates} | xargs -n1 pip3 install${ii} -U || echo -e "${idsCL[LightCyan]}There are no Python(Pip) updates available, life is good!${idsCL[Default]}"
|
||||||
else
|
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U
|
|
||||||
fi
|
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[Green]}Python-Pip Upgrades has completed${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Python-Pip Upgrades has completed${idsCL[Default]}"
|
||||||
[ ${action-x} ] && exit 0
|
[ ${action-x} ] && exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user