We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 949ecc3 commit d2a103cCopy full SHA for d2a103c
misc/build.func
@@ -1338,7 +1338,8 @@ EOF'
1338
pct exec "$CTID" -- ash -c "apk add bash newt curl openssh nano mc ncurses jq >/dev/null"
1339
else
1340
sleep 3
1341
- pct exec "$CTID" -- bash -c "sed -i '/$LANG/ s/^# //' /etc/locale.gen"
+ LANG=${LANG:-en_US.UTF-8}
1342
+ pct exec "$CTID" -- bash -c "sed -i \"/$LANG/ s/^# //\" /etc/locale.gen"
1343
pct exec "$CTID" -- bash -c "locale_line=\$(grep -v '^#' /etc/locale.gen | grep -E '^[a-zA-Z]' | awk '{print \$1}' | head -n 1) && \
1344
echo LANG=\$locale_line >/etc/default/locale && \
1345
locale-gen >/dev/null && \
0 commit comments