We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d25dc5 commit 7dd2032Copy full SHA for 7dd2032
scripts/format.sh
@@ -31,7 +31,13 @@ elif which docker > /dev/null 2>&1; then
31
--user "$(id -u):$(id -g)" \
32
swift:6.0.2 \
33
/workspace/scripts/format.sh
34
+elif which podman > /dev/null 2>&1; then
35
+ podman run --rm \
36
+ --volume .:/workspace \
37
+ --userns=keep-id \
38
+ docker.io/swift:6.0.2 \
39
+ /workspace/scripts/format.sh
40
else
- echo "Either 'swift' or 'docker' has to be installed to run swiftformat as an SPM plugin."
41
+ echo "Either 'swift', 'docker' or 'podman' has to be installed to run swiftformat."
42
exit 1
43
fi
0 commit comments