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
EOF
pkill -RTMIN+8 dwmblocks if [ -n "$TERM_PROGRAM" ]; then
$script
tput bold else
tput setaf 4 st -e sh -c "
echo 'All done!' $script
tput sgr 0 tput bold
read -r _ tput setaf 4
" echo 'All done!'
tput sgr 0
read -r _
"
fi