We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e21b23e + 6e7a3e7 commit 7c46072Copy full SHA for 7c46072
package_tool
@@ -43,7 +43,12 @@ parse_json()
43
json_file=$1
44
platform=$2
45
46
- jq -r ".dependencies.$platform | @csv" $json_file | tr -d '"'
+ packages=$(jq -r ".dependencies.$platform | @csv" $json_file 2> /dev/null)
47
+
48
+ if [[ $? -ne 0 ]]; then
49
+ echo "WARN: Could not find dependency information for $platform in $json_file, this could be intended behavior" > /dev/stderr
50
+ fi
51
+ echo $packages | tr -d '"'
52
}
53
54
# Append packages to a CSV list variable
0 commit comments