mirror of
https://github.com/m8tin/cis.git
synced 2025-12-06 07:48:26 +01:00
allows leading blanks
This commit is contained in:
@@ -75,8 +75,8 @@ function checkSync() {
|
|||||||
for _COMPOSITION_PATH in ${_COMPOSITIONS}*; do
|
for _COMPOSITION_PATH in ${_COMPOSITIONS}*; do
|
||||||
|
|
||||||
# If remote host is found than it is responsible for this container-composition, otherwise skip
|
# If remote host is found than it is responsible for this container-composition, otherwise skip
|
||||||
# (grep -E "^something" means. Line has to start with "something".)
|
# (grep -E "^[[:blank:]]*something" means. Line has to start with "something", leading blank chars are ok.)
|
||||||
grep -E "^${_REMOTE_HOSTNAME_SHORT}" "${_COMPOSITION_PATH}/zfssync-hosts" &> /dev/null \
|
grep -E "^[[:blank:]]*${_REMOTE_HOSTNAME_SHORT}" "${_COMPOSITION_PATH}/zfssync-hosts" &> /dev/null \
|
||||||
|| continue;
|
|| continue;
|
||||||
|
|
||||||
_COMPOSITION_NAME="${_COMPOSITION_PATH##*/}" #Removes longest matching pattern '*/' from the begin
|
_COMPOSITION_NAME="${_COMPOSITION_PATH##*/}" #Removes longest matching pattern '*/' from the begin
|
||||||
|
|||||||
Reference in New Issue
Block a user