From 6d0f0d255418bf842ebe52cb7d884b6f951b9dff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:41:53 +0100 Subject: [PATCH] chore(ci): bump ludeeus/action-shellcheck from 0.1.0 to 1.1.0 (#31) * chore(ci): bump ludeeus/action-shellcheck from 0.1.0 to 1.1.0 Bumps [ludeeus/action-shellcheck](https://github.com/ludeeus/action-shellcheck) from 0.1.0 to 1.1.0. - [Release notes](https://github.com/ludeeus/action-shellcheck/releases) - [Commits](https://github.com/ludeeus/action-shellcheck/compare/0.1.0...1.1.0) --- updated-dependencies: - dependency-name: ludeeus/action-shellcheck dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * fix(shellcheck): exclude find rule and add quoting on GENERATIONS Signed-off-by: Toni Tauro * fix(shellcheck): ignore only on line Signed-off-by: Toni Tauro Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Toni Tauro --- .github/workflows/shellcheck.yaml | 2 +- src/back8sup.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/shellcheck.yaml b/.github/workflows/shellcheck.yaml index 6c445a5..56ebf79 100644 --- a/.github/workflows/shellcheck.yaml +++ b/.github/workflows/shellcheck.yaml @@ -8,4 +8,4 @@ jobs: uses: actions/checkout@v2 - name: Run shellcheck id: shellcheck - uses: ludeeus/action-shellcheck@0.1.0 + uses: ludeeus/action-shellcheck@1.1.0 diff --git a/src/back8sup.sh b/src/back8sup.sh index 847ae82..17dfebf 100755 --- a/src/back8sup.sh +++ b/src/back8sup.sh @@ -151,4 +151,5 @@ done log "INFO done exporting namespace $NS" log "INFO keep last $GENERATIONS backups and delete the rest" -ls -t -w 1 "$DST_FOLDER/" | tail -n +$GENERATIONS | xargs rm -rf +# shellcheck disable=SC2012 +ls -t -w 1 "$DST_FOLDER/" | tail -n +"$GENERATIONS" | xargs rm -rf