summaryrefslogtreecommitdiff
path: root/tools/read-dependencies
diff options
context:
space:
mode:
authorBen Howard <ben.howard@canonical.com>2013-09-11 14:56:36 -0600
committerBen Howard <ben.howard@canonical.com>2013-09-11 14:56:36 -0600
commit23f7b8a39bb197db557bdcf851639ea4111b7786 (patch)
tree9f1a5501fd1f9c0d4b32b597b09ae19ceaab9ef6 /tools/read-dependencies
parent1979ea3e3440335632af8e7e58dd34aae52a2b96 (diff)
parent6b122985da19c08ea50a25226c726f2982680efb (diff)
downloadvyos-cloud-init-23f7b8a39bb197db557bdcf851639ea4111b7786.tar.gz
vyos-cloud-init-23f7b8a39bb197db557bdcf851639ea4111b7786.zip
Merged in upstream changes with disk partition support
Diffstat (limited to 'tools/read-dependencies')
-rwxr-xr-xtools/read-dependencies3
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