File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,24 @@ set -eux
44
55PYCHARM_VERSION=" 2023.1.4"
66
7- echo " Install Pycharm Community $PYCHARM_VERSION .."
7+ echo " \nInstall Pycharm Community $PYCHARM_VERSION ..\n "
88
99# download pycharm community edition
1010# wget "data.services.jetbrains.com/products/download?code=PCC&platform=linux" -O pycharm.tar.gz
1111wget -c " https://download.jetbrains.com/python/pycharm-community-${PYCHARM_VERSION} .tar.gz"
1212
13+ # download sha256sum file and verify the checksum
14+ wget " https://download.jetbrains.com/python/pycharm-community-${PYCHARM_VERSION} .tar.gz.sha256" -O expected_sha256sum.txt
15+ sha256sum pycharm-community-${PYCHARM_VERSION} .tar.gz >> actual_sha256sum.txt
16+ cat actual_sha256sum.txt | sha256sum -c expected_sha256sum.txt
17+
1318# extract and keep the files in /opt
1419tar -zxvf " pycharm-community-${PYCHARM_VERSION} .tar.gz"
1520mv " pycharm-community-${PYCHARM_VERSION} " /opt
1621
22+ # remove tar and hash files
23+ rm " pycharm-community-${PYCHARM_VERSION} .tar.gz" actual_sha256sum.txt expected_sha256sum.txt
24+
1725# populate desktop entry
1826cat > jetbrains-pycharm.desktop << EOF
1927[Desktop Entry]
You can’t perform that action at this time.
0 commit comments