diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-09-11 13:27:40 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-09-11 13:27:40 -0400 |
commit | 6b122985da19c08ea50a25226c726f2982680efb (patch) | |
tree | bbd2f42c2d2acc51977997c5b4a460349cb07f39 /tools/read-dependencies | |
parent | d210dab10b16f5903132b628838c96cb3499b6cd (diff) | |
download | vyos-cloud-init-6b122985da19c08ea50a25226c726f2982680efb.tar.gz vyos-cloud-init-6b122985da19c08ea50a25226c726f2982680efb.zip |
better checking and portability in read-dependencies and read-version
Diffstat (limited to 'tools/read-dependencies')
-rwxr-xr-x | tools/read-dependencies | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/read-dependencies b/tools/read-dependencies index 87db5d83..3335f6a4 100755 --- a/tools/read-dependencies +++ b/tools/read-dependencies @@ -26,6 +26,7 @@ if [ ! -e "$REQUIRES" ]; then fi # Filter out comments and empty lines -DEPS=$(sed -n -e 's,#.*,,' -e '/./p' "$REQUIRES") || +DEPS=$(sed -n -e 's,#.*,,' -e '/./p' "$REQUIRES") && + [ -n "$DEPS" ] || fail "failed to read deps from '${REQUIRES}'" echo "$DEPS" | sort -d -f |