Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

Commit 750afdd

Browse files
author
Erazem Kokot
committed
Update existing AUR package check
1 parent 1d265da commit 750afdd

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

iso-generator.sh

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -346,19 +346,20 @@ local_repo_builds() { # prev: aur_builds
346346
echo -e "Building AUR packages for local repo ..." | log
347347

348348
# Begin build loop checking /tmp for existing builds, then build packages & install if required
349-
if !(ls /tmp | grep "${local_aur_packages[9]}"); then
350-
351-
for pkg in "${local_aur_packages[@]}"; do
352-
echo -e "Making ${pkg} ..." | log
353-
wget -qO- "${aur_snapshot_link}/${pkg}.tar.gz" | tar xz -C /tmp
354-
cd /tmp/"${pkg}" || exit
355-
if [[ "${show_color}" == true ]]; then
356-
makepkg -sif --noconfirm --nocheck
357-
else
358-
makepkg -sif --noconfirm --nocheck --nocolor
359-
fi
360-
echo -e "${pkg} made successfully" | log
361-
done
349+
if [[ ! "$(ls /tmp | grep "arch-wiki-cli")" ]]; then
350+
for pkg in "${local_aur_packages[@]}"; do
351+
echo -e "Making ${pkg} ..." | log
352+
wget -qO- "${aur_snapshot_link}/${pkg}.tar.gz" | tar xz -C /tmp
353+
cd /tmp/"${pkg}" || exit
354+
355+
if [[ "${show_color}" == true ]]; then
356+
makepkg -sif --noconfirm --nocheck
357+
else
358+
makepkg -sif --noconfirm --nocheck --nocolor
359+
fi
360+
361+
echo -e "${pkg} made successfully" | log
362+
done
362363

363364
fi
364365

0 commit comments

Comments
 (0)