Skip to content

Commit

Permalink
Correct file tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petronio committed Apr 27, 2019
1 parent 45f6517 commit e609d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildkernel
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ source_etc_conf_file() {
KERNEL_SIGNING_CERT="${LINUXDIR}/certs/signing_key.x509"
KERNEL_SIGNING_KEY="${LINUXDIR}/certs/signing_key.pem"
else
if [[ ! -f KERNEL_SIGNING_CERT ]]; then
if [[ ! -f "${KERNEL_SIGNING_CERT}" ]]; then
die "Cannot proceed; KERNEL_SIGNING_CERT is not a valid path to a file."
fi
if [[ ! -f KERNEL_SIGNING_KEY ]]; then
if [[ ! -f "${KERNEL_SIGNING_KEY}" ]]; then
die "Cannot proceed; KERNEL_SIGNING_KEY is not a valid path to a file."
fi
fi
Expand Down

0 comments on commit e609d27

Please sign in to comment.