Skip to content

Commit efb67d2

Browse files
committed
fix shell syntax and license header
1 parent 0751cd6 commit efb67d2

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

scripts/check-format-linux.sh

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
#!/bin/bash
22
##===----------------------------------------------------------------------===##
33
##
4+
## This source file is part of the SwiftAWSLambdaRuntime open source project
5+
##
6+
## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors
7+
## Licensed under Apache License v2.0
8+
##
9+
## See LICENSE.txt for license information
10+
## See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
11+
##
12+
## SPDX-License-Identifier: Apache-2.0
13+
##
14+
##===----------------------------------------------------------------------===##
15+
##===----------------------------------------------------------------------===##
16+
##
417
## This source file is part of the Swift.org open source project
518
##
6-
## Copyright (c) 2025 Apple Inc. and the Swift project authors
19+
## Copyright (c) 2020 Apple Inc. and the Swift project authors
720
## Licensed under Apache License v2.0 with Runtime Library Exception
821
##
922
## See https://swift.org/LICENSE.txt for license information
@@ -21,7 +34,7 @@ echo "Downloading check-swift-format.sh"
2134
curl -s ${CHECK_FORMAT_SCRIPT} > format.sh && chmod u+x format.sh
2235

2336
echo "Running check-swift-format.sh"
24-
/usr/local/bin/container run --rm -v $(pwd):/workspace -w /workspace ${SWIFT_IMAGE} bash -clx "./format.sh"
37+
/usr/local/bin/container run --rm -v "$(pwd):/workspace" -w /workspace ${SWIFT_IMAGE} bash -clx "./format.sh"
2538

2639
echo "Cleaning up"
2740
rm format.sh
@@ -33,7 +46,7 @@ echo "Downloading yamllint.yml"
3346
curl -s ${YAML_LINT} > yamllint.yml
3447

3548
echo "Running yamllint"
36-
/usr/local/bin/container run --rm -v $(pwd):/workspace -w /workspace ${YAML_IMAGE} bash -clx "apt-get -qq update && apt-get -qq -y install yamllint && yamllint --strict --config-file /workspace/yamllint.yml .github"
49+
/usr/local/bin/container run --rm -v "$(pwd):/workspace" -w /workspace ${YAML_IMAGE} bash -clx "apt-get -qq update && apt-get -qq -y install yamllint && yamllint --strict --config-file /workspace/yamllint.yml .github"
3750

3851
echo "Cleaning up"
3952
rm yamllint.yml

scripts/check-format.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
#!/bin/bash
22
##===----------------------------------------------------------------------===##
33
##
4+
## This source file is part of the SwiftAWSLambdaRuntime open source project
5+
##
6+
## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors
7+
## Licensed under Apache License v2.0
8+
##
9+
## See LICENSE.txt for license information
10+
## See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
11+
##
12+
## SPDX-License-Identifier: Apache-2.0
13+
##
14+
##===----------------------------------------------------------------------===##
15+
##===----------------------------------------------------------------------===##
16+
##
417
## This source file is part of the Swift.org open source project
518
##
6-
## Copyright (c) 2024 Apple Inc. and the Swift project authors
19+
## Copyright (c) 2020 Apple Inc. and the Swift project authors
720
## Licensed under Apache License v2.0 with Runtime Library Exception
821
##
922
## See https://swift.org/LICENSE.txt for license information

0 commit comments

Comments
 (0)