Skip to content

Commit

Permalink
Add update-python3.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
liyanage committed Apr 7, 2018
1 parent 95fddfc commit 373401c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions update-python3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
#
# Update Python 3
#

set -e
set -x


pkg_url=$(curl -s https://www.python.org/downloads/ | awk -F '"' '/Download Python 3/ && /pkg/ {print $4}')
echo $pkg_url

curl -o $TMPDIR/python3.pkg $pkg_url
sudo installer -pkg $TMPDIR/python3.pkg -target /

0 comments on commit 373401c

Please sign in to comment.