1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-04 00:17:06 +00:00

non-standard git remotes in github actions

This commit is contained in:
downtownallday 2021-08-23 16:01:16 -04:00
parent 0c2c76a6dc
commit 0876a9a7de
2 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,7 @@ installed_state_compare() {
local compare_type="all"
source "$s2/info.txt"
if grep "mailinabox-ldap.git" <<<"$GIT_ORIGIN" >/dev/null; then
if [ -z "$GIT_ORIGIN" ] || grep "mailinabox-ldap.git" <<<"$GIT_ORIGIN" >/dev/null; then
GIT_ORIGIN=""
source "$s1/info.txt"
if ! grep "mailinabox-ldap.git" <<<"$GIT_ORIGIN" >/dev/null; then

View File

@ -165,6 +165,8 @@ installed_state_capture "/tmp/state/miab-ldap"
# compare states
if ! installed_state_compare "/tmp/state/upstream" "/tmp/state/miab-ldap"; then
dump_file "/tmp/state/upstream/info.txt"
dump_file "/tmp/state/miab-ldap/info.txt"
die "Upstream and upgraded states are different !"
fi