aboutsummaryrefslogtreecommitdiff
path: root/utils/inst
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-10-23 14:14:27 +0200
committerKarel Kočí <karel.koci@nic.cz>2019-10-23 14:14:27 +0200
commit5e943d87595e10ba45e1c32a25be5ab7cb1bd8c7 (patch)
treef2be3e258d8ce99b46ab66dda0d2f54196e9bc2f /utils/inst
parent6a6f0d10d079519df5ed070ba8389b9104560921 (diff)
downloadmyconfigs-5e943d87595e10ba45e1c32a25be5ab7cb1bd8c7.tar.gz
myconfigs-5e943d87595e10ba45e1c32a25be5ab7cb1bd8c7.tar.bz2
myconfigs-5e943d87595e10ba45e1c32a25be5ab7cb1bd8c7.zip
Fix missing ignore file
Diffstat (limited to 'utils/inst')
-rw-r--r--utils/inst3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/inst b/utils/inst
index 34b2e87..e23b8de 100644
--- a/utils/inst
+++ b/utils/inst
@@ -5,7 +5,8 @@
# First argument is name (take care not to use special characters for regulard
# expression) and second argument is a question
ask() {
- grep -q "^$1$" ".ignore-$(hostname)" && return 1
+ local ignore_file=".ignore-$(hostname)"
+ [ -f "$ignore_file" ] && grep -q "^$1$" "$ignore_file" && return 1
if $FORCE; then
echo "\e[1;34m$2\e[0m"
# Fall trough with 0 exit (always yes)