Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update to current
  • Loading branch information
Thorin-Oakenpants committed Oct 27, 2021
1 parent d2fb829 commit 73994f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prefsCleaner.sh
Expand Up @@ -20,7 +20,7 @@ cd "$(dirname "${sfp}")"
fQuit() {
## change directory back to the original working directory
cd "${currdir}"
[ $1 -eq 0 ] && echo -e "\n$2" || echo -e "\n$2" >&2
[ "$1" -eq 0 ] && echo -e "\n$2" || echo -e "\n$2" >&2
exit $1
}

Expand All @@ -36,7 +36,7 @@ fFF_check() {
# this isn't elegant and might not be future-proof but should at least be compatible with any environment
while [ -e lock ]; do
echo -e "\nThis Firefox profile seems to be in use. Close Firefox and try again.\n" >&2
read -p "Press any key to continue."
read -r -p "Press any key to continue."
done
}

Expand All @@ -48,7 +48,7 @@ fClean() {
if [[ "$line" =~ $prefexp && $prefs != *"@@${BASH_REMATCH[1]}@@"* ]]; then
prefs="${prefs}${BASH_REMATCH[1]}@@"
fi
done <<< "`grep -E \"$prefexp\" user.js`"
done <<< "$(grep -E "$prefexp" user.js)"

while IFS='' read -r line || [[ -n "$line" ]]; do
if [[ "$line" =~ ^$prefexp ]]; then
Expand Down

0 comments on commit 73994f5

Please sign in to comment.