* Fix crash when using remote docker instance (#169)

When trying to compare / sync and where the remote host is based on Docker, an error will be displayed as per below:
invalid argument "pihole1" for "-f, --filter" flag: bad format of filter (expected name=value)
See 'docker ps --help'.

* 3.3.2

Co-authored-by: Michael Thompson <25192401+nh-mike@users.noreply.github.com>
Co-authored-by: Michael Stanclift <vmstan@mstanclift-a03.local>
This commit is contained in:
Michael Stanclift 2021-02-15 15:18:36 -06:00 committed by GitHub
parent f32a0e2ab4
commit 6466e5a384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
3.3.1 3.3.2

View File

@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS
# GRAVITY SYNC BY VMSTAN ##################### # GRAVITY SYNC BY VMSTAN #####################
PROGRAM='Gravity Sync' PROGRAM='Gravity Sync'
VERSION='3.3.1' VERSION='3.3.2'
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync # For documentation or downloading updates visit https://github.com/vmstan/gravity-sync

View File

@ -102,7 +102,7 @@ function ph_type {
RH_EXEC="${RIHOLE_BIN}" RH_EXEC="${RIHOLE_BIN}"
elif [ "$RH_IN_TYPE" == "docker" ] elif [ "$RH_IN_TYPE" == "docker" ]
then then
RH_EXEC="sudo ${ROCKER_BIN} exec $(sudo ${ROCKER_BIN} ps -qf ${ROCKER_CON}) pihole" RH_EXEC="sudo ${ROCKER_BIN} exec $(sudo ${ROCKER_BIN} ps -qf name=${ROCKER_CON}) pihole"
elif [ "$RH_IN_TYPE" == "podman" ] elif [ "$RH_IN_TYPE" == "podman" ]
then then
RH_EXEC="sudo ${RODMAN_BIN} exec ${ROCKER_CON} pihole" RH_EXEC="sudo ${RODMAN_BIN} exec ${ROCKER_CON} pihole"
@ -143,4 +143,4 @@ function start_gs_noconfig {
MESSAGE="Evaluating Arguments" MESSAGE="Evaluating Arguments"
echo_stat echo_stat
} }