From faeaf8f9b3a424bdb7027cff156ddeac515f6cac Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 21 Oct 2021 19:58:04 +0200 Subject: [PATCH] =?UTF-8?q?V=C3=A9rification=20si=20codium=20est=20ferm?= =?UTF-8?q?=C3=A9=20ou=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- updateVSCodium.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/updateVSCodium.sh b/updateVSCodium.sh index 732fcd5..fea770d 100644 --- a/updateVSCodium.sh +++ b/updateVSCodium.sh @@ -3,6 +3,10 @@ wget -q https://api.github.com/repos/VSCodium/vscodium/releases/latest grep -n 'browser_download_url": ".*.AppImage"' latest | awk '{ print substr ($0, 36 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url rm latest +if pgrep -f "codium" > /dev/null +then + pkill -9 codium +fi [ -f $HOME/VSCodium.AppImage ] && rm $HOME/VSCodium.AppImage wget -q --show-progress -i url -O VSCodium.AppImage rm url