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.
1 parent 2a560d6 commit c1c0e51Copy full SHA for c1c0e51
misc/packagecloud.sh
@@ -10,7 +10,7 @@ check_jq() {
10
}
11
12
list() {
13
- if [ $PACKAGECLOUD_TOKEN = "" ]; then
+ if [ "$PACKAGECLOUD_TOKEN" = "" ]; then
14
echo '$PACKAGECLOUD_TOKEN is required'
15
exit 1
16
fi
@@ -31,8 +31,7 @@ find() {
31
32
33
number=$(cat distributions.json | \
34
- jq ".deb[] | select(.index_name == \"$os\") | .versions[] | {\"id\":.id,\"name\":.index_name}" | \
35
- jq -s | jq ".[] | select(.name == \"$code\") | .id")
+ jq ".deb[] | select(.index_name == \"$os\") | .versions[] | {\"id\":.id,\"name\":.index_name} | select(.name == \"$code\") | .id")
36
37
printf "$number"
38
0 commit comments