diff --git a/.github/workflows/automatic-release.yaml b/.github/workflows/automatic-release.yaml new file mode 100644 index 0000000..c718958 --- /dev/null +++ b/.github/workflows/automatic-release.yaml @@ -0,0 +1,19 @@ +--- +name: Automatic Tag-release + +on: # yamllint disable-line rule:truthy + push: + branches-ignore: + - '**' + tags: + - 'v*.*.*' + +jobs: + automatic-tag-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false diff --git a/zsh/lib/config.zsh b/zsh/lib/config.zsh index c8615ab..7fa00a1 100644 --- a/zsh/lib/config.zsh +++ b/zsh/lib/config.zsh @@ -4,6 +4,9 @@ [ ! $SCWRYPTS_ROOT ] \ && SCWRYPTS_ROOT="$(cd $(dirname "${0:a:h}"); git rev-parse --show-toplevel)" +[ ! $SCWRYPTS_ROOT ] && [ -d /usr/share/scwrypts ] \ + && SCWRYPTS_ROOT=/usr/share/scwrypts + ##################################################################### DEFAULT_CONFIG="$SCWRYPTS_ROOT/zsh/lib/config.user.zsh" diff --git a/zsh/lib/utils/dependencies.zsh b/zsh/lib/utils/dependencies.zsh index ad478d4..3888763 100644 --- a/zsh/lib/utils/dependencies.zsh +++ b/zsh/lib/utils/dependencies.zsh @@ -37,7 +37,7 @@ __CHECK_COREUTILS() { do __CHECK_DEPENDENCY $UTIL || { ((MISSING_DEPENDENCY_COUNT+=1)); continue; } - $UTIL --version 2>&1 | grep -q 'GNU' || { + $UTIL --version 2>&1 | grep 'GNU' | grep -qv 'BSD' || { WARNING "non-GNU version of $UTIL detected" ((NON_GNU_DEPENDENCY_COUNT+=1)) }