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)"
if [ "$COUNTS" -eq 2 ]; then
r_checkExitStatus 0
else
r_checkExitStatus 1
fi