.dotfiles/.bin/sh/shutdown.sh
2025-03-24 12:47:13 -04:00

12 lines
138 B
Bash
Executable file

#!/bin/sh
# Prompt Reboot
{
read -p "Shutdown now? [y/n]:" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
command shutdown -h now
fi
}