test_e2e.sh: use `local` for all variables defined inside functions
Use local for all variables defined inside functions; also convert them all to common name style (lowercase for locals)
Originally posted by @thockin in https://github.com/kubernetes/git-sync/issues/902#issuecomment-2187270246
Hi @rul, thank you for the contribution, as I can observe the PR is merged now, so you can now close this issue.
AFAICT, this is not done:
function assert_file_lines_eq() {
N=$(wc -l < "$1")
function docker_run() {
RM="--rm"
function init_repo() {
arg="${1}"
function GIT_SYNC() {
#./bin/linux_amd64/git-sync "$@"
RM="--rm"
# make a worktree to collide with git-sync
SHA=$(git -C "$REPO" rev-list -n1 HEAD)
etc
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale