aboutsummaryrefslogtreecommitdiff
path: root/utils/inst
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-05-03 11:12:56 +0200
committerKarel Kočí <cynerd@email.cz>2017-05-03 11:12:56 +0200
commit915f636ea838810ffffe1dbe53f045a3d339e7a1 (patch)
tree3a086508e1a844ad1793b3ae930391c99e175ee9 /utils/inst
parent1a1dd59b890504ef29f0cc6b303c1b16c94b7753 (diff)
downloadmyconfigs-915f636ea838810ffffe1dbe53f045a3d339e7a1.tar.gz
myconfigs-915f636ea838810ffffe1dbe53f045a3d339e7a1.tar.bz2
myconfigs-915f636ea838810ffffe1dbe53f045a3d339e7a1.zip
Also color Install? question
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