#!/bin/bash

dpkg -s python3-venv
if [ $? -ne 0 ]
then
    apt install python3-venv
fi

ls /usr/share/codium/resources/app/product.json
if [ $? -eq 0 ]
then
    sed -i '80i \    ,"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",\n    "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",\n    "itemUrl": "https://marketplace.visualstudio.com/items"\n' /usr/share/codium/resources/app/product.json
fi

echo "l extention est maintenant disponible"
