Skip to content

Commit

Permalink
Add a separate script prepareForPush.sh as more lints might come in f…
Browse files Browse the repository at this point in the history
…uture
  • Loading branch information
dioKaratzas committed Dec 6, 2022
1 parent b774d20 commit 59f6919
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions scripts/prepareForPush.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

SWIFT_VERSION=5.3

cd "$(dirname "$0")"

./runSwiftFormat.sh
2 changes: 1 addition & 1 deletion scripts/runSwiftFormat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cleanup() {
if [[ ${exit_code} -eq 0 ]]; then
exit 0
else
echo "Need to run swiftformat. Please run scripts/runSwiftFormat.sh to format the code."
echo "Need to run scripts/prepareForPush.sh script to prepare the code before a PullRequest."
exit 1
fi
}
Expand Down

0 comments on commit 59f6919

Please sign in to comment.