Skip to content

Commit 154ef74

Browse files
committed
Skip attempt to run post install script if it does not exist
1 parent 443619c commit 154ef74

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/prep-gh-action.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ if [ "$installSwiftly" == true ]; then
2828
echo "Installing selected swift toolchain"
2929
swiftly install --post-install-file=post-install.sh
3030

31-
echo "Performing swift toolchain post-installation"
32-
chmod u+x post-install.sh && ./post-install.sh
31+
if [ -f post-install.sh ]; then
32+
echo "Performing swift toolchain post-installation"
33+
chmod u+x post-install.sh && ./post-install.sh
34+
fi
3335

3436
echo "Displaying swift version"
3537
swift --version

0 commit comments

Comments
 (0)