.bashrc.d/20nobeep: Add missing ~/ prefix to one .mozilla path master
authorW. Trevor King <wking@tremily.us>
Wed, 11 Jul 2018 22:29:19 +0000 (15:29 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 11 Jul 2018 22:41:14 +0000 (15:41 -0700)
So we can still find the file even when running from a directory other
than ~.

src/.bashrc.d/20nobeep

index e6587ed067f80d47945f08f2623192adfbdac03b..5ac0e953bc281f6a7f945f160ed42a9d55cb09f1 100644 (file)
@@ -12,7 +12,7 @@ fi
 
 # turn off beeps in Firefox
 if [ -f ~/.mozilla/firefox/profiles.ini ]; then
-       for PROFILE in $(sed -n 's/Path=//p' .mozilla/firefox/profiles.ini); do
+       for PROFILE in $(sed -n 's/Path=//p' ~/.mozilla/firefox/profiles.ini); do
                PREFERENCES=~/.mozilla/firefox/"${PROFILE}"/user.js
                if [ -f "${PREFERENCES}" ]; then
                        if grep accessibility.typeaheadfind.enablesound "${PREFERENCES}" >/dev/null; then