Skip to content

Commit

Permalink
fetch tags for web (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipitio authored Apr 27, 2024
1 parent 1879f77 commit ad77aa8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion advanced/Scripts/speedtestmod/mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ if [[ "${SKIP_MOD:-}" != true ]]; then
# The changes reverted
# shellcheck disable=SC2317 ###########
abort() {
if $cleanup; then
if $cleanup && [[ $aborted -eq 0 ]]; then
echo "Process Aborting..."
aborted=1

Expand Down Expand Up @@ -544,6 +544,15 @@ if [[ "${SKIP_MOD:-}" != true ]]; then
! $online && restore $CORE_DIR || download /etc .pihole https://github.com/pi-hole/pi-hole "$core_ver"
[[ ! -d $MOD_DIR ]] || rm -rf $MOD_DIR
swapScripts

if $update; then
for repo in $HTML_DIR/admin; do
pushd "$repo" &>/dev/null || exit 1
git tag -l | xargs git tag -d >/dev/null 2>&1
git fetch --tags -f -q
popd &>/dev/null
done
fi
fi
fi

Expand Down

0 comments on commit ad77aa8

Please sign in to comment.