shfmt -w globally
This commit is contained in:
parent
4e207414d4
commit
d5f66e4c0a
27 changed files with 378 additions and 375 deletions
|
@ -1,6 +1,6 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
UPGRADE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
UPGRADE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
function upgrade_reset() {
|
||||
local config=$1
|
||||
|
@ -11,7 +11,7 @@ function upgrade_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
|
||||
}
|
||||
|
@ -19,14 +19,14 @@ 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
|
||||
}
|
||||
|
||||
function test_successful_upgrades() {
|
||||
stop
|
||||
for config in $UPGRADE_DIR/default-app.ini ; do
|
||||
for config in $UPGRADE_DIR/default-app.ini; do
|
||||
log_info "using $config"
|
||||
upgrade_reset $config
|
||||
|
||||
|
@ -38,7 +38,7 @@ function test_successful_upgrades() {
|
|||
fixture_assert
|
||||
doctor_run $config
|
||||
|
||||
for version in $RELEASE_NUMBERS_AND_DEV ; do
|
||||
for version in $RELEASE_NUMBERS_AND_DEV; do
|
||||
stop
|
||||
log_info "run $version"
|
||||
start $version
|
||||
|
@ -55,7 +55,7 @@ function test_gitea_upgrades() {
|
|||
echo gitea 1.21 forgejo 7.0-test
|
||||
echo gitea 1.21 forgejo 8.0-test
|
||||
echo gitea 1.22 forgejo 8.0-test
|
||||
) | while read gitea gitea_version forgejo forgejo_version ; do
|
||||
) | while read gitea gitea_version forgejo forgejo_version; do
|
||||
log_info "upgrading from Gitea $gitea_version to Forgejo $forgejo_version"
|
||||
stop
|
||||
upgrade_reset $config
|
||||
|
|
Loading…
Add table
Reference in a new issue