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

12 lines
136 B
Bash
Executable file

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