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 bd8897f commit 37245bfCopy full SHA for 37245bf
misc/packagecloud.sh
@@ -2,14 +2,14 @@
2
3
# Returns Distribution ID from PackageCloud
4
5
-function checkJq() {
+function check_jq () {
6
if ! command -v jq &> /dev/null; then
7
echo "jq is not installed" >&2
8
exit 1
9
fi
10
}
11
12
-function list() {
+function list () {
13
if [ $PACKAGECLOUD_TOKEN == "" ]; then
14
echo '$PACKAGECLOUD_TOKEN is required'
15
@@ -19,7 +19,7 @@ function list() {
19
https://packagecloud.io/api/v1/distributions.json > distributions.json
20
21
22
-function find() {
+function find () {
23
os=$1
24
if [ "$os" = "" ]; then
25
os=ubuntu
@@ -37,7 +37,7 @@ function find() {
37
printf "$number"
38
39
40
-checkJq
+check_jq
41
list
42
find $1 $2
43
rm -rf distributions.json
0 commit comments