Forwarding error to std output in bash script now
This commit is contained in:
@@ -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]; then
|
if ! [dpkg -l ${package} > /dev/null 2>&1]; then
|
||||||
echo "Error: ${package} is not installed."
|
echo "Error: ${package} is not installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user