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
1 changed files with 16 additions and 10 deletions

View File

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