shfmt -w globally

This commit is contained in:
Earl Warren 2024-08-07 08:31:33 +02:00
parent 4e207414d4
commit d5f66e4c0a
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
27 changed files with 378 additions and 375 deletions

View file

@ -9,20 +9,20 @@ function star_count() {
local host_port=$2
local count=$3
$curl api_json http://$host_port/api/v1/repos/root/test > $TMPDIR/count.json
if test $count != $(jq -r .stars_count < $TMPDIR/count.json) ; then
jq . < $TMPDIR/count.json
return 1
$curl api_json http://$host_port/api/v1/repos/root/test >$TMPDIR/count.json
if test $count != $(jq -r .stars_count <$TMPDIR/count.json); then
jq . <$TMPDIR/count.json
return 1
fi
}
#
# create a repo on each instance
#
$ONE_CURL api_json --data '{"name":"test","auto_init":true}' $ONE_HOST_PORT/api/v1/user/repos > $TMPDIR/one-repo.json
one_repo_id=$(jq -r .id < $TMPDIR/one-repo.json)
$TWO_CURL api_json --data '{"name":"test","auto_init":true}' $TWO_HOST_PORT/api/v1/user/repos > $TMPDIR/two-repo.json
two_repo_id=$(jq -r .id < $TMPDIR/two-repo.json)
$ONE_CURL api_json --data '{"name":"test","auto_init":true}' $ONE_HOST_PORT/api/v1/user/repos >$TMPDIR/one-repo.json
one_repo_id=$(jq -r .id <$TMPDIR/one-repo.json)
$TWO_CURL api_json --data '{"name":"test","auto_init":true}' $TWO_HOST_PORT/api/v1/user/repos >$TMPDIR/two-repo.json
two_repo_id=$(jq -r .id <$TMPDIR/two-repo.json)
#
# the repo in instance two is federated with the repo in instance one

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@