fix turnoffbeep when file does not exist
This commit is contained in:
parent
a6227d2025
commit
d6493640bd
1 changed files with 1 additions and 1 deletions
|
@ -492,6 +492,6 @@ EOF
|
|||
turnoffbeep() {
|
||||
line='set bell-style none'
|
||||
file=~/.inputrc
|
||||
grep -qxF "$line" "$file" || echo "$line" >> "$file"
|
||||
[ -e "$file" ] && grep -qxF "$line" "$file" || echo "$line" >> "$file"
|
||||
}
|
||||
#EOF
|
||||
|
|
Loading…
Reference in a new issue