Skip to content

Commit 73994f5

Browse files
update to current
1 parent d2fb829 commit 73994f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prefsCleaner.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cd "$(dirname "${sfp}")"
2020
fQuit() {
2121
## change directory back to the original working directory
2222
cd "${currdir}"
23-
[ $1 -eq 0 ] && echo -e "\n$2" || echo -e "\n$2" >&2
23+
[ "$1" -eq 0 ] && echo -e "\n$2" || echo -e "\n$2" >&2
2424
exit $1
2525
}
2626

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

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

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

0 commit comments

Comments
 (0)