diff --git a/gravity-sync.sh b/gravity-sync.sh index 1217605..8a4a9be 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -133,8 +133,8 @@ function pull_gs { MESSAGE="Validating Ownership on ${GRAVITY_FI}" echo -en "${STAT} ${MESSAGE}" - GRAVDB_OWN=$(ls -ld ${PIHOLE_DIR}/${GRAVITY_FI} | awk '\{print $3\}') - if $GRAVDB_OWN = 'pihole' + GRAVDB_OWN=$(ls -ld ${PIHOLE_DIR}/${GRAVITY_FI} | awk '{print $3 $4}') + if $GRAVDB_OWN = 'piholepihole' then echo -e "\r${GOOD} ${MESSAGE}" else