Skip to content

Commit 23a69d2

Browse files
committed
Explicitly configure shell for Spigot build
On Ubuntu, the default shell is dash, which supports Bourne shell syntax. The Spigot build tools rely on Bash syntax, specifically Bash function declarations: Bourne shell: applyPatches() { # ... } Bash: function applyPatches() { # ... } This commit overrides the default user shell for the build.
1 parent 8a0d07c commit 23a69d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/install/spigot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
args:
77
creates: spigot-{{ minecraft_version_latest | default(minecraft_version) }}.jar
88
chdir: "{{ minecraft_home }}/build"
9+
environment:
10+
SHELL: /bin/bash
911
become: true
1012
become_user: "{{ minecraft_user }}"
1113

0 commit comments

Comments
 (0)