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

@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
STORAGE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
STORAGE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
STORAGE_PATHS="attachments avatars lfs packages repo-archive repo-avatars"
@ -14,7 +14,7 @@ function storage_reset() {
function verify_storage() {
local work_path=$DIR/forgejo-work-path
for path in ${STORAGE_PATHS} ; do
for path in ${STORAGE_PATHS}; do
test -d $work_path/data/$path
done
}
@ -22,7 +22,7 @@ function verify_storage() {
function cleanup_storage() {
local work_path=$DIR/forgejo-work-path
for path in ${STORAGE_PATHS} ; do
for path in ${STORAGE_PATHS}; do
rm -fr $work_path/data/$path
done
}
@ -33,13 +33,13 @@ function test_storage_stable_s3() {
log_info "See also https://codeberg.org/forgejo/forgejo/issues/1338"
for version in 1.21 $RELEASE_NUMBERS_AND_DEV ; do
for version in 1.21 $RELEASE_NUMBERS_AND_DEV; do
log_info "Forgejo $version & $s3_backend"
stop
storage_reset stable-s3
start $version $s3_backend
fixture_create
for fun in ${STORAGE_FUN} ; do
for fun in ${STORAGE_FUN}; do
fixture_${fun}_assert_s3
done
done