Chk all pkgs before init exit. Hide whereis output
This commit is contained in:
parent
8307f654c0
commit
db9ca7857e
16
init
16
init
|
@ -2,18 +2,24 @@
|
||||||
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||||
NEEDS="needs to be installed through your distro's package manager"
|
NEEDS="needs to be installed through your distro's package manager"
|
||||||
|
|
||||||
if ! whereis python3 | grep "/"; then
|
failed=false
|
||||||
|
|
||||||
|
if ! whereis python3 | grep "/" &> /dev/null; then
|
||||||
echo "python3" $NEEDS
|
echo "python3" $NEEDS
|
||||||
exit 1
|
failed=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! whereis pip3 | grep "/"; then
|
if ! whereis pip3 | grep "/" &> /dev/null; then
|
||||||
echo "pip3" $NEEDS
|
echo "pip3" $NEEDS
|
||||||
exit 1
|
failed=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! whereis pdflatex | grep "/"; then
|
if ! whereis pdflatex | grep "/" &> /dev/null; then
|
||||||
echo "texlive" $NEEDS
|
echo "texlive" $NEEDS
|
||||||
|
failed=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $failed; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue