14 lines
533 B
Bash
14 lines
533 B
Bash
#!/usr/bin/env bash
|
|
|
|
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
|
|
chmod u+x VSCodium.AppImage
|
|
[ -f $HOME/VSCodium.AppImage ] || mv VSCodium.AppImage $HOME/VSCodium.AppImage
|