Debian Codegraph @

debian/tests/can-install-multiple-jdks

raw
1 #!/bin/bash
2
3 set -e
4
5 output=`mktemp`
6
7 jdks=$(apt-cache -n search java-sdk| awk '$1 ~ /-.*-jdk$/ {print $1}')
8
9 # WHEN multiple JDKs are installed
10 echo "Installing $jdks ..."
11 apt-get install -y $jdks | tee ${output}
12
13 # THEN installation is successful
14 if [[ $(grep -L "Adding debian:Amazon_Root_CA_1.pem" ${output}) ]]; then
15 echo "Certificates were not imported !!!"
16 exit 255
17 fi
18 rm $output