Skip to content

Commit 37245bf

Browse files
committed
fix shell
1 parent bd8897f commit 37245bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

misc/packagecloud.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
# Returns Distribution ID from PackageCloud
44

5-
function checkJq() {
5+
function check_jq () {
66
if ! command -v jq &> /dev/null; then
77
echo "jq is not installed" >&2
88
exit 1
99
fi
1010
}
1111

12-
function list() {
12+
function list () {
1313
if [ $PACKAGECLOUD_TOKEN == "" ]; then
1414
echo '$PACKAGECLOUD_TOKEN is required'
1515
exit 1
@@ -19,7 +19,7 @@ function list() {
1919
https://packagecloud.io/api/v1/distributions.json > distributions.json
2020
}
2121

22-
function find() {
22+
function find () {
2323
os=$1
2424
if [ "$os" = "" ]; then
2525
os=ubuntu
@@ -37,7 +37,7 @@ function find() {
3737
printf "$number"
3838
}
3939

40-
checkJq
40+
check_jq
4141
list
4242
find $1 $2
4343
rm -rf distributions.json

0 commit comments

Comments
 (0)