Ampersand as last parameter might fix the redirect?

This commit is contained in:
2024-04-30 14:55:43 +02:00
parent f7000b4b84
commit 2eda317dd7

View File

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