Just the ampersand, without the redirection?

This commit is contained in:
2024-04-30 14:58:10 +02:00
parent 2eda317dd7
commit 9c83a5bb32

View File

@@ -4,7 +4,7 @@
necessary_packages=("pdflatex") necessary_packages=("pdflatex")
for package in "${necessary_packages}"; do for package in "${necessary_packages}"; do
if ! [dpkg -l "${package}" > /dev/null 2>&1 &]; then if ! [dpkg -l "${package}" > /dev/null &]; then
echo "Error: ${package} is not installed." echo "Error: ${package} is not installed."
exit 1 exit 1
fi fi