diff options
author | Karel Kočí <cynerd@email.cz> | 2017-05-03 11:12:56 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-05-03 11:12:56 +0200 |
commit | 915f636ea838810ffffe1dbe53f045a3d339e7a1 (patch) | |
tree | 3a086508e1a844ad1793b3ae930391c99e175ee9 /utils | |
parent | 1a1dd59b890504ef29f0cc6b303c1b16c94b7753 (diff) | |
download | myconfigs-915f636ea838810ffffe1dbe53f045a3d339e7a1.tar.gz myconfigs-915f636ea838810ffffe1dbe53f045a3d339e7a1.tar.bz2 myconfigs-915f636ea838810ffffe1dbe53f045a3d339e7a1.zip |
Also color Install? question
Diffstat (limited to 'utils')
-rw-r--r-- | utils/inst | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |