#!/bin/sh

script="sudo xbps-install -Su; pkill -RTMIN+8 dwmblocks"

if [ -n "$TERM" ]; then
    sh -c "$script"
else
    st -e sh -c "
        $script
        tput bold
        tput setaf 4
        echo 'All done!'
        tput sgr 0
        read -r _
    "
fi