Skip to content
This repository was archived by the owner on Jan 25, 2019. It is now read-only.

Commit 32b7cf2

Browse files
pesterhazymartinklepsch
authored andcommitted
Handle files without final newline
1 parent fe516d9 commit 32b7cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/head.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44

55
process_properties() {
66
if [[ -f "$1" ]]; then
7-
while IFS='=' read -r key value; do
7+
while IFS='=' read -r key value || [[ -n "$key" ]]; do
88
if [[ -n "$value" ]]; then
99
if [[ "$key" == "BOOT_JAVA_COMMAND" ]]; then
1010
java_command="$value"

0 commit comments

Comments
 (0)