replace with nginx-mod-fancyindex
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9756cf65fa
commit
33659a3969
3
aur.txt
3
aur.txt
@ -34,8 +34,7 @@ megatools
|
|||||||
molotov
|
molotov
|
||||||
native-image-jdk17-bin
|
native-image-jdk17-bin
|
||||||
ncurses5-compat-libs
|
ncurses5-compat-libs
|
||||||
nginx-mainline-mod-brotli
|
nginx-mod-fancyindex
|
||||||
nginx-mainline-mod-fancyindex
|
|
||||||
nordvpn-bin
|
nordvpn-bin
|
||||||
oh-my-zsh-git
|
oh-my-zsh-git
|
||||||
onlyoffice-bin
|
onlyoffice-bin
|
||||||
|
10
build.sh
10
build.sh
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# shellcheck disable=SC3044,SC3009
|
||||||
|
|
||||||
. .util.sh
|
. .util.sh
|
||||||
|
|
||||||
@ -6,7 +7,7 @@ build() {
|
|||||||
|
|
||||||
if grep -c 'git+' PKGBUILD >/dev/null && ! grep -c '#tag=' PKGBUILD >/dev/null; then
|
if grep -c 'git+' PKGBUILD >/dev/null && ! grep -c '#tag=' PKGBUILD >/dev/null; then
|
||||||
makepkg --nodeps --nobuild --skippgpcheck --noconfirm
|
makepkg --nodeps --nobuild --skippgpcheck --noconfirm
|
||||||
makepkg --printsrcinfo >.SRCINFO
|
makepkg --printsrcinfo > .SRCINFO
|
||||||
fi
|
fi
|
||||||
name=$(grep -m1 'pkgname' .SRCINFO | cut -d'=' -f2 | tr -d ' ')
|
name=$(grep -m1 'pkgname' .SRCINFO | cut -d'=' -f2 | tr -d ' ')
|
||||||
ver=$(grep 'pkgver' .SRCINFO | cut -d'=' -f2 | tr -d ' ')
|
ver=$(grep 'pkgver' .SRCINFO | cut -d'=' -f2 | tr -d ' ')
|
||||||
@ -30,6 +31,7 @@ build() {
|
|||||||
git config user.email "drone@nyyu.dev"
|
git config user.email "drone@nyyu.dev"
|
||||||
git config user.name "drone"
|
git config user.name "drone"
|
||||||
git remote set-url origin "${DRONE_GIT_HTTP_URL}"
|
git remote set-url origin "${DRONE_GIT_HTTP_URL}"
|
||||||
|
# shellcheck disable=SC2016
|
||||||
git config credential.helper '!f() { sleep 1; echo "username=drone"; echo "password=${GIT_PASSWORD}"; }; f'
|
git config credential.helper '!f() { sleep 1; echo "username=drone"; echo "password=${GIT_PASSWORD}"; }; f'
|
||||||
|
|
||||||
for d in */; do
|
for d in */; do
|
||||||
@ -59,4 +61,8 @@ while read -r p; do
|
|||||||
cd ..
|
cd ..
|
||||||
done <aur.txt
|
done <aur.txt
|
||||||
|
|
||||||
repo-remove -s /repo/nyyu.db.tar.zst $(git --no-pager diff HEAD~${DRONE_COMMIT_BEFORE} aur.txt | tail -n +4 | grep -E '^-' | cut -c2-)
|
del=$(git --no-pager diff HEAD~${DRONE_COMMIT_BEFORE} aur.txt | tail -n +4 | grep -E '^-' | cut -c2-)
|
||||||
|
if [ -n "${del}" ]; then
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
repo-remove -s /repo/nyyu.db.tar.zst ${del}
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user