improve upgrades script usability
This commit is contained in:
parent
acf9121fa6
commit
7f1038f33d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue