Skip to content

Commit

Permalink
Merge pull request #20 from gvatsal60/fix/python
Browse files Browse the repository at this point in the history
Fix Shell Exit & Python packages
  • Loading branch information
andmpel authored Oct 28, 2024
2 parents fbd2365 + 24f4ec8 commit 1ef41a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ update() {
# Check if curl is available
if ! command -v curl >/dev/null 2>&1; then
echo "Error: curl is required but not installed. Please install curl." >&2
exit 1
return
fi
# Check internet connection by pinging a reliable server
Expand All @@ -37,13 +37,13 @@ update() {
# Check if response is empty
if [ -z "\${TEST_RESP}" ]; then
echo "No Internet Connection!!!" >&2
exit 1
return
fi
# Check for "200" in the response
if ! printf "%s" "\${TEST_RESP}" | grep -q "200"; then
echo "Internet is not working!!!" >&2
exit 1
return
fi
curl -fsSL ${UPDATE_SCRIPT_SOURCE_URL} | zsh
Expand Down
11 changes: 1 addition & 10 deletions update-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,7 @@ update_yarn() {
yarn upgrade --latest
}

update_pip3() {
println "Updating Python 3.x pips"

if ! check_command python3 || ! check_command pip3; then
return
fi

pip3 list --outdated --format=columns | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
}
# Python pip packages updates have been removed, please create virtual environments per project to manage packages

update_cargo() {
println "Updating Rust Cargo Crates"
Expand Down Expand Up @@ -182,7 +174,6 @@ update_all() {
update_gem
update_npm
update_yarn
update_pip3
update_cargo
update_app_store
update_macos
Expand Down

0 comments on commit 1ef41a4

Please sign in to comment.