Vérification si codium est fermé ou pas
This commit is contained in:
parent
f4a1b2c719
commit
faeaf8f9b3
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,10 @@
|
||||||
wget -q https://api.github.com/repos/VSCodium/vscodium/releases/latest
|
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
|
grep -n 'browser_download_url": ".*.AppImage"' latest | awk '{ print substr ($0, 36 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url
|
||||||
rm latest
|
rm latest
|
||||||
|
if pgrep -f "codium" > /dev/null
|
||||||
|
then
|
||||||
|
pkill -9 codium
|
||||||
|
fi
|
||||||
[ -f $HOME/VSCodium.AppImage ] && rm $HOME/VSCodium.AppImage
|
[ -f $HOME/VSCodium.AppImage ] && rm $HOME/VSCodium.AppImage
|
||||||
wget -q --show-progress -i url -O VSCodium.AppImage
|
wget -q --show-progress -i url -O VSCodium.AppImage
|
||||||
rm url
|
rm url
|
||||||
|
|
Reference in a new issue