fix turnoffbeep when file does not exist

This commit is contained in:
Jakobus Schürz 2020-03-04 10:46:48 +01:00
parent a6227d2025
commit d6493640bd

View file

@ -492,6 +492,6 @@ EOF
turnoffbeep() { turnoffbeep() {
line='set bell-style none' line='set bell-style none'
file=~/.inputrc file=~/.inputrc
grep -qxF "$line" "$file" || echo "$line" >> "$file" [ -e "$file" ] && grep -qxF "$line" "$file" || echo "$line" >> "$file"
} }
#EOF #EOF