Minor copy updates
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
# check latest commit hashes for a match, exit if nothing to sync
|
# check latest commit hashes for a match, exit if nothing to sync
|
||||||
|
|
||||||
check_for_updates() {
|
check_for_updates() {
|
||||||
write_out -1 'Checking for new commits on upstream branch.'
|
write_out -1 'Checking for new commits on upstream branch.\n'
|
||||||
|
|
||||||
# get latest commit hashes from local and remote branches for comparison
|
# get latest commit hashes from local and remote branches for comparison
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ set_upstream() {
|
|||||||
# write_out "$?" "Could not verify upstream repo."
|
# write_out "$?" "Could not verify upstream repo."
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
write_out "r" "SUCCESS\n"
|
write_out "g" "SUCCESS\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
# # LOCAL MODE - handle if 'upstream' repo url is already set to another value
|
# # LOCAL MODE - handle if 'upstream' repo url is already set to another value
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ test_upstream_branch_exists() {
|
|||||||
VERIFY_UPSTREAM_BRANCH=$(git ls-remote "${UPSTREAM_REPO_URL}" --refs "${INPUT_UPSTREAM_SYNC_BRANCH}")
|
VERIFY_UPSTREAM_BRANCH=$(git ls-remote "${UPSTREAM_REPO_URL}" --refs "${INPUT_UPSTREAM_SYNC_BRANCH}")
|
||||||
|
|
||||||
if [ -z "${VERIFY_UPSTREAM_BRANCH}" ]; then
|
if [ -z "${VERIFY_UPSTREAM_BRANCH}" ]; then
|
||||||
write_out "r" "Test 3 FAILED - no branch '${INPUT_UPSTREAM_SYNC_BRANCH}' found on remote repo\n"
|
write_out "r" "FAILED - no branch '${INPUT_UPSTREAM_SYNC_BRANCH}' found on remote repo\n"
|
||||||
else
|
else
|
||||||
write_out "g" "PASSED\n"
|
write_out "g" "PASSED\n"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ test_has_upstream_repo_access() {
|
|||||||
if [ "${COMMAND_EXIT_CODE}" -eq "0" ]; then
|
if [ "${COMMAND_EXIT_CODE}" -eq "0" ]; then
|
||||||
write_out "g" "PASSED" # no \n because of cleanup output
|
write_out "g" "PASSED" # no \n because of cleanup output
|
||||||
else
|
else
|
||||||
write_out "r" "Test 1 FAILED - repo does not exist OR you do not have permission to clone from it\n"
|
write_out "r" "FAILED - repo does not exist OR you do not have permission to clone from it\n"
|
||||||
SKIP_CLEANUP=true
|
SKIP_CLEANUP=true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user