aboutsummaryrefslogtreecommitdiff
path: root/build-arch-gce
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-06-29 02:23:14 +0700
committerShulhan <ms@kilabit.info>2022-07-25 19:29:22 +0700
commit878e5e39e5afe89228814f2a8d0f8e37b6ff2317 (patch)
tree02bb47312437e01c777b9ff709a99109856516ae /build-arch-gce
parentab59d4594202172caf6d2ba05cf27712f84e8a94 (diff)
downloadcompute-archlinux-image-builder-878e5e39e5afe89228814f2a8d0f8e37b6ff2317.tar.xz
all: set LC_ALL=C to fix spurious warnings "cannot change locale"
If user use non default locale, for example en_GB.UTF-8, setting up chroot will print the following warnings: /usr/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)
Diffstat (limited to 'build-arch-gce')
-rwxr-xr-xbuild-arch-gce2
1 files changed, 2 insertions, 0 deletions
diff --git a/build-arch-gce b/build-arch-gce
index f0922ff..1e6e16d 100755
--- a/build-arch-gce
+++ b/build-arch-gce
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+LC_ALL=C
+
set -eEuo pipefail
trap 'echo "Error: \`$BASH_COMMAND\` exited with status $?"' ERR