From 6466e5a384072b67fe34e9026602ee55fa713007 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 15 Feb 2021 15:18:36 -0600 Subject: [PATCH] 3.3.2 (#170) * 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 --- VERSION | 2 +- gravity-sync.sh | 2 +- includes/gs-core.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index bea438e..4772543 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3.1 +3.3.2 diff --git a/gravity-sync.sh b/gravity-sync.sh index 64f06fc..443b898 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS # GRAVITY SYNC BY VMSTAN ##################### PROGRAM='Gravity Sync' -VERSION='3.3.1' +VERSION='3.3.2' # For documentation or downloading updates visit https://github.com/vmstan/gravity-sync diff --git a/includes/gs-core.sh b/includes/gs-core.sh index 4e59107..64f98c2 100644 --- a/includes/gs-core.sh +++ b/includes/gs-core.sh @@ -102,7 +102,7 @@ function ph_type { RH_EXEC="${RIHOLE_BIN}" elif [ "$RH_IN_TYPE" == "docker" ] 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" ] then RH_EXEC="sudo ${RODMAN_BIN} exec ${ROCKER_CON} pihole" @@ -143,4 +143,4 @@ function start_gs_noconfig { MESSAGE="Evaluating Arguments" echo_stat -} \ No newline at end of file +}