Skip to content

Commit 6da0268

Browse files
committed
Updated pycharm_community.sh
1 parent 932c5fd commit 6da0268

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/pycharm_community.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,24 @@ set -eux
44

55
PYCHARM_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
1111
wget -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
1419
tar -zxvf "pycharm-community-${PYCHARM_VERSION}.tar.gz"
1520
mv "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
1826
cat > jetbrains-pycharm.desktop << EOF
1927
[Desktop Entry]

0 commit comments

Comments
 (0)