diff options
| author | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
| commit | ea8ff6d7638cdd1f36cc978f1734759158b969b0 (patch) | |
| tree | 18893c91594a2d58bb6757f592a076c5496e300e /.local/bin/scripts/shellprompt | |
Initial commit
Diffstat (limited to '.local/bin/scripts/shellprompt')
| -rwxr-xr-x | .local/bin/scripts/shellprompt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/scripts/shellprompt b/.local/bin/scripts/shellprompt new file mode 100755 index 0000000..80b045f --- /dev/null +++ b/.local/bin/scripts/shellprompt @@ -0,0 +1,3 @@ +#!/bin/sh +read -p "$1 [yN] " ans +([[ "$ans" == "Y" || "$ans" == "y" ]] && exit 0) || exit 1 |