diff options
author | M. Mostafa Farzan | 2022-01-17 23:25:22 +0330 |
---|---|---|
committer | GitHub Action | 2022-01-17 19:55:37 +0000 |
commit | 623f114963e379fc2a4a2684a6c7209d59dae447 (patch) | |
tree | ba4a91babbab6beee9a1a609ab073945253c2ce2 | |
parent | 00d4e50c17b64d117e6a6e543e4c46a230bf14c5 (diff) | |
download | aur-623f114963e379fc2a4a2684a6c7209d59dae447.tar.gz |
Fix locale check
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -33,11 +33,12 @@ sha256sums=( install=ros2-galactic.install prepare() { - # Check locale - locale | grep LANG | grep UTF-8 - if [[ $? -ne 0 ]]; then - printf "Locale must support UTF-8. See https://wiki.archlinux.org/index.php/locale - or https://wiki.archlinux.org/index.php/locale ." + # Check locale according to + # https://docs.ros.org/en/rolling/Installation/Ubuntu-Development-Setup.html#set-locale + if ! locale | grep LANG | grep UTF-8 > /dev/null; then + echo 'Your locale must support UTF-8. See ' \ + 'https://wiki.archlinux.org/index.php/locale and ' \ + 'https://docs.ros.org/en/rolling/Installation/Ubuntu-Development-Setup.html#set-locale' exit 1 fi |