Skip to content

Commit dc86a69

Browse files
committed
Check that the SDK scripts are executable too.
1 parent d6d7cb2 commit dc86a69

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,26 @@ PROJECT_DIRS = $(shell dirname $$(find . -iname "*.csproj" -not -path "$(ENGINE_
3636

3737
scripts:
3838
@awk '/\r$$/ { exit(1); }' mod.config || (printf "Invalid mod.config format: file must be saved using unix-style (CR, not CRLF) line endings.\n"; exit 1)
39+
@if [ ! -x "fetch-engine.sh" ] || [ ! -x "launch-dedicated.sh" ] || [ ! -x "launch-game.sh" ] || [ ! -x "utility.sh" ]; then \
40+
echo "Required SDK scripts are not executable:"; \
41+
if [ ! -x "fetch-engine.sh" ]; then \
42+
echo " fetch-engine.sh"; \
43+
fi; \
44+
if [ ! -x "launch-dedicated.sh" ]; then \
45+
echo " launch-dedicated.sh"; \
46+
fi; \
47+
if [ ! -x "launch-game.sh" ]; then \
48+
echo " launch-game.sh"; \
49+
fi; \
50+
if [ ! -x "utility.sh" ]; then \
51+
echo " utility.sh"; \
52+
fi; \
53+
echo "Repair their permissions and try again."; \
54+
echo "If you are using git you can repair these permissions by running"; \
55+
echo " git update-index --chmod=+x *.sh"; \
56+
echo "and commiting the changed files to your repository."; \
57+
exit 1; \
58+
fi
3959

4060
variables:
4161
@if [ -z "$(MOD_ID)" ] || [ -z "$(ENGINE_DIRECTORY)" ]; then \

0 commit comments

Comments
 (0)