.dotfiles/.dot-files-laptop/.bin/sh/shutdown.sh

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
}