1
0
Fork 0

improve upgrades script usability

This commit is contained in:
Luca Bilke 2024-02-28 12:42:55 +01:00
parent acf9121fa6
commit 7f1038f33d

View file

@ -1,13 +1,19 @@
#!/bin/sh #!/bin/sh
st -e sh -c " read -r script<<EOF
sudo xbps-install -Syu sudo xbps-install -Su
pkill -RTMIN+8 dwmblocks
pkill -RTMIN+8 dwmblocks EOF
if [ -n "$TERM_PROGRAM" ]; then
$script
else
st -e sh -c "
$script
tput bold tput bold
tput setaf 4 tput setaf 4
echo 'All done!' echo 'All done!'
tput sgr 0 tput sgr 0
read -r _ read -r _
" "
fi