improve upgrades script usability
This commit is contained in:
parent
acf9121fa6
commit
7f1038f33d
1 changed files with 16 additions and 10 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue