style: auto-format from pre-push hooks
This commit is contained in:
@@ -29,10 +29,10 @@ log() { printf '\033[1;36m==>\033[0m %s\n' "$*"; }
|
|||||||
# ── 0. Wipe prior unstable tags from gitea fork ───────────────────────────
|
# ── 0. Wipe prior unstable tags from gitea fork ───────────────────────────
|
||||||
cd "$GITEA_REPO"
|
cd "$GITEA_REPO"
|
||||||
log "Cleaning up previous unstable tags on gitea fork (so nix-update sees only clean semver tags)"
|
log "Cleaning up previous unstable tags on gitea fork (so nix-update sees only clean semver tags)"
|
||||||
mapfile -t PREV_TAGS < <(git ls-remote --tags oleks 'refs/tags/v*-unstable-*' \
|
mapfile -t PREV_TAGS < <(git ls-remote --tags oleks 'refs/tags/v*-unstable-*' |
|
||||||
| awk '{print $2}' \
|
awk '{print $2}' |
|
||||||
| sed 's|refs/tags/||;s|\^{}$||' \
|
sed 's|refs/tags/||;s|\^{}$||' |
|
||||||
| sort -u)
|
sort -u)
|
||||||
for tag in "${PREV_TAGS[@]}"; do
|
for tag in "${PREV_TAGS[@]}"; do
|
||||||
[ -z "$tag" ] && continue
|
[ -z "$tag" ] && continue
|
||||||
log " deleting $tag"
|
log " deleting $tag"
|
||||||
|
|||||||
Reference in New Issue
Block a user