toolkit/func/core/pkg_firefox/10-check-firefox-start-page.sh

17 lines
397 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "firefox" "Check that the firefox startup page is correct"
if p_getPackageArch firefox | grep -q x86_64; then
FIREPATH='/usr/lib64/firefox/defaults/preferences/all-redhat.js'
else
FIREPATH='/usr/lib/firefox/defaults/preferences/all-redhat.js'
fi
COUNTS="$(grep -c rockylinux.org $FIREPATH)"
2022-06-20 23:49:14 +00:00
if [ "$COUNTS" -ge 2 ]; then
2021-07-05 06:50:25 +00:00
r_checkExitStatus 0
else
r_checkExitStatus 1
fi