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

Commit d827ed0

Browse files
committed
docker: skip unavailable optional packages during build
1 parent 5e94309 commit d827ed0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

optional_tools.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ PACKAGES="theharvester \
1414
o-saft"
1515

1616
if [ "$1" = "--download-only" ]; then
17-
apt-get install -d -y $PACKAGES
17+
install_args="-d -y"
1818
else
19-
apt-get install -y $PACKAGES
19+
install_args="-y"
2020
fi
21+
22+
for package in $PACKAGES; do
23+
if ! apt-get install $install_args "$package"; then
24+
echo "[!] Skipping unavailable optional package: $package"
25+
fi
26+
done

0 commit comments

Comments
 (0)