10 lines
172 B
Bash
10 lines
172 B
Bash
|
#!/bin/bash
|
||
|
echo "To be executed: $@"
|
||
|
read -p "Confirm (Y/N): " -n 1 -r
|
||
|
case "$REPLY" in
|
||
|
y|Y ) echo "es"; eval $@;;
|
||
|
n|N ) echo "o";;
|
||
|
* ) echo -e "\ninvalid";;
|
||
|
esac
|
||
|
|