aboutsummaryrefslogtreecommitdiff
path: root/utils/inst
diff options
context:
space:
mode:
Diffstat (limited to 'utils/inst')
-rw-r--r--utils/inst6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/inst b/utils/inst
index 2dbf474..4d44cdf 100644
--- a/utils/inst
+++ b/utils/inst
@@ -16,8 +16,7 @@ dodiff() {
fi
if ! [ -f "$OUT" ]; then
echo -e "\e[1;33mNot installed:\e[0m $1 => $OUT"
- read -p "Install? (Y/n) "
- if [[ $REPLY =~ ^[Yy]?$ ]]; then
+ if ask "Install?"; then
doinst "$1" "$OUT"
fi
return
@@ -50,8 +49,7 @@ checkdiff() {
D="${d#$1}"
if [ ! -d "$2/$D" ]; then
echo -e "\e[1;33mDirectory not installed:\e[0m $1/$D => $2/$D"
- read -p "Install? (Y/n) "
- if [[ $REPLY =~ ^[Yy]?$ ]]; then
+ if ask "Install?"; then
doinst "$1/$D/" "$2/$D"
fi
fi