Skip to content

Commit

Permalink
chore(ci): bump ludeeus/action-shellcheck from 0.1.0 to 1.1.0 (#4)
Browse files Browse the repository at this point in the history
* 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](ludeeus/action-shellcheck@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] <support@github.com>

* ci: using ls instead of find is fine due to -1tp args

* fix: bash shebang since we use non posix features like pipefail

* ci: disable Use find better handle non-alphanumeric filenames

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lucas Bickel <lucas.bickel@adfinis.com>
  • Loading branch information
dependabot[bot] and hairmare authored Jul 6, 2021
1 parent fecd23a commit e722d91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/shellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion backup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
################################################################################
# backup.sh OpenShift etcd backup script
################################################################################
Expand Down Expand Up @@ -70,5 +70,6 @@ rm -rv /host/var/tmp/etcd-backup
if [ "${OCP_BACKUP_EXPIRE_TYPE}" = "days" ]; then
find "${BACKUP_ROOTPATH}" -mindepth 1 -maxdepth 1 -type d -mtime "+${OCP_BACKUP_KEEP_DAYS}" -exec rm -rv {} +
elif [ "${OCP_BACKUP_EXPIRE_TYPE}" = "count" ]; then
# shellcheck disable=SC3040,SC2012
ls -1tp "${BACKUP_ROOTPATH}" | awk "NR>${OCP_BACKUP_KEEP_COUNT}" | xargs -I{} rm -rv "${BACKUP_ROOTPATH}/{}"
fi

0 comments on commit e722d91

Please sign in to comment.