diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-01 22:56:07 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-01 22:58:53 +0200 |
| commit | 1045963959ddfb697898fa90476f837aae4e2881 (patch) | |
| tree | f4f93fcd99ea0f2dfa1342d79baef10d5f66cc7c /hooks/post-commit | |
| parent | fbb8e8f558f541d6a573105dc369ba7c563f78eb (diff) | |
| download | my-slackbuilds-1045963959ddfb697898fa90476f837aae4e2881.tar.gz my-slackbuilds-1045963959ddfb697898fa90476f837aae4e2881.zip | |
repo: move all packages under SlackBuilds/ subfolder
Reorganize repository by moving all 11 package directories into a new
SlackBuilds/ subfolder. Update README.md, CLAUDE.md, and hooks/post-commit
to reflect the new path structure.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'hooks/post-commit')
| -rwxr-xr-x | hooks/post-commit | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/post-commit b/hooks/post-commit index 9f92e3c..c9241ae 100755 --- a/hooks/post-commit +++ b/hooks/post-commit @@ -13,8 +13,8 @@ while IFS=$'\t' read -r status file; do [[ "$status" != "A" && "$status" != "M" ]] && continue dir=$(dirname "$file") base=$(basename "$file") - [[ "$dir" == "." ]] && continue # skip root-level files - [[ "$dir" == *"/"* ]] && continue # skip files deeper than one level + # Only process packages at SlackBuilds/<pkg> depth + [[ "$dir" =~ ^SlackBuilds/[^/]+$ ]] || continue [[ "$base" == *.SlackBuild ]] || continue PACKAGES+=("$dir") done < <(git diff-tree --no-commit-id -r --name-status HEAD) |
