diff --git a/.forgejo/workflows/clone_to_github.yaml b/.forgejo/workflows/clone_to_github.yaml new file mode 100644 index 0000000..b5d89e3 --- /dev/null +++ b/.forgejo/workflows/clone_to_github.yaml @@ -0,0 +1,25 @@ +name: Auto clone to GitHub + +on: + push: + branches: + - main + - penguinee + +jobs: + mirror: + runs-on: ci + + steps: + - name: Checkout repo + uses: actions@checkout@v6 + with: + fetch-depth: 0 + + - name: Push to GitHub + env: + GH_TOKEN: ${{ secrets.MIRROR_TOKEN }} + run: | + git remote add gh \ + "https://x-access-token:${GH_TOKEN}@gihtub.com/T1tukll/ipban.git" + git push main diff --git a/install.zsh b/install.zsh index 5f4cc07..b681e09 100755 --- a/install.zsh +++ b/install.zsh @@ -127,12 +127,12 @@ fi bin_client="/bin/ipban" sbin_client="/sbin/ipban" -if [[ ! -f $bin_client ]]; then +if [[ -f $bin_client ]]; then if ! ask "n" "$bin_client already exists. overwrite?"; then abort_install "Couldn't install ipban client." fi fi -if [[ ! -f $sbin_client ]]; then +if [[ -f $sbin_client ]]; then if ! ask "n" "$sbin_client already exists. overwrite?"; then abort_install "Couldn't install ipban client." fi diff --git a/repo_avatar.png b/repo_avatar.png new file mode 100644 index 0000000..413d371 Binary files /dev/null and b/repo_avatar.png differ