-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_pycharm.sh
26 lines (26 loc) · 1008 Bytes
/
install_pycharm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
PYCHARM_YEAR="2022"
PYCHARM_MAJOR="2"
PYCHARM_MINOR="1"
while true
do
echo "Do you want Professional [p] or Community [c]?"
read edition
if [ "${edition,,}" == "p" ] || [ "${edition,,}" == "professional" ]
then
echo "Downloading Professional Edition"
edition="professional"
break
elif [ "${edition,,}" == "c" ] || [ "${edition,,}" == "community" ]
then
echo "Downloading Community Edition"
edition="community"
break
else
echo "You didn't put in a valid input. Enter either p or c"
fi
done
mkdir ~/Desktop &> /dev/null
[ $? -eq 0 ] && echo "Your desktop directory doesn't seem to exist. It's been created automatically, but PyCharm is graphical, so you'll have to log on to the build server with Remote Desktop Connection to use it"
url="https://download.jetbrains.com/python/pycharm-${edition}-${PYCHARM_YEAR}.${PYCHARM_MAJOR}.${PYCHARM_MINOR}.tar.gz"
curl $url -L -s | tar zxf - -C ~/Desktop