scripts/confirm-important.sh

10 lines
176 B
Bash
Executable File

#!/bin/bash
echo "Write 'yes do as i say' to confirm that you REALLY want to do this: $@"
read
if [[ "${REPLY,,}" = "yes do as i say" ]]
then
eval $@
else
echo "aborting"
fi