File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
charts/factorio-server-charts Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
## Changelog
2
2
3
+ ### V2.2.1
4
+
5
+ #### Non-Breaking Changes
6
+
7
+ - Fixing mod download script to encode spaces properly, fixes [ Issue 42] ( https://github.com/SQLJames/factorio-server-charts/issues/42 )
8
+
3
9
### V2.2.0
4
10
5
11
#### Non-Breaking Changes
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ sources:
20
20
# This is the chart version. This version number should be incremented each time you make changes
21
21
# to the chart and its templates, including the app version.
22
22
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23
- version : 2.2.0
23
+ version : 2.2.1
24
24
25
25
# This is the version number of the application being deployed. This version number should be
26
26
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -85,10 +85,14 @@ spec:
85
85
imagePullPolicy : {{ .Values.image.pullPolicy }}
86
86
command :
87
87
- /bin/bash
88
- - -ec
88
+ - -ecx
89
89
- |
90
90
mkdir -p /factorio/mods
91
+ ls -alth /scripts
92
+ echo "Running mod-downloader.sh script..."
91
93
bash /scripts/mod-downloader.sh
94
+ echo "Finished mod-downloader.sh script"
95
+ ls -althR /factorio/mods
92
96
{{- with .Values.securityContext }}
93
97
securityContext :
94
98
{{- toYaml . | nindent 12 }}
Original file line number Diff line number Diff line change 39
39
cd $modDir;curl -L -o $2 $1
40
40
}
41
41
function downloadofficial() {
42
+ MOD_NAME="$1"
43
+ MOD_NAME_ENCODED="${1// /%20}"
42
44
if [[ -z ${USERNAME:-} ]]; then
43
45
USERNAME="$(cat /account/username)"
44
46
fi
54
56
if [[ -z ${TOKEN:-} ]]; then
55
57
echo "You need to provide your Factorio token to update mods."
56
58
fi
57
- MOD_INFO_URL="$MOD_BASE_URL/api/mods/$1 "
59
+ MOD_INFO_URL="$MOD_BASE_URL/api/mods/$MOD_NAME_ENCODED "
58
60
MOD_INFO_JSON=$(curl --silent "$MOD_INFO_URL")
59
61
# echo "$MOD_INFO_URL $MOD_INFO_JSON"
60
62
if ! echo "$MOD_INFO_JSON" | jq -e .name >/dev/null; then
You can’t perform that action at this time.
0 commit comments