%%script bash

if command -v python &> /dev/null
then
    echo "Python is installed."
    echo "Python Version:"
    python --version
else
    echo "Python is not installed."
fi

if command -v java &> /dev/null
then
    echo "Java is installed."
    echo "Java Version:"
    python --version
else
    echo "Java is not installed."
fi

if command -v git &> /dev/null
then
    echo "Git is installed."
    echo "Git Version:"
    git --version
else
    echo "Git is not installed."
fi

echo "Updating repository from GitHub..."
cd /home/kaiden_do/vscode/kaidencsablog
git pull
echo "Repository updated."


if command -v docker &> /dev/null
then
    echo "Docker is installed."
    echo "Docker Version:"
    docker --version
else
    echo "Docker is not installed."
fi

if command -v jupyter &> /dev/null
then
    echo "Jupyter Notebook is installed."
    echo "Jupyter Notebook Version:"
    jupyter --version
else
    echo "Jupyter Notebook is not installed."
fi

if command -v code &> /dev/null
then
    echo "VSCode is installed."
    echo "VSCode Version:"
    code --version
else
    echo "VSCode is not installed."
fi
Python is installed.
Python Version:
Python 3.9.12
Java is installed.
Java Version:
Python 3.9.12
Git is installed.
Git Version:
git version 2.25.1
Updating repository from GitHub...


Already up to date.
Repository updated.
Docker is installed.
Docker Version:
Docker version 20.10.17, build 100c701
Jupyter Notebook is installed.
Jupyter Notebook Version:
Selected Jupyter core packages...
IPython          : 8.2.0
ipykernel        : 6.9.1
ipywidgets       : 7.6.5
jupyter_client   : 6.1.12
jupyter_core     : 4.9.2
jupyter_server   : 1.13.5
jupyterlab       : 3.3.2
nbclient         : 0.5.13
nbconvert        : 6.4.4
nbformat         : 5.3.0
notebook         : 6.4.8
qtconsole        : 5.3.0
traitlets        : 5.1.1
VSCode is installed.
VSCode Version:
1.81.1
6c3e3dba23e8fadc360aed75ce363ba185c49794
x64