11 Feb
2015
11 Feb
'15
10:10 a.m.
10.02.2015, 18:25, "Daniel Wallace" <danielwallace@gtmanfred.com>:
When you do grep like that, you should use two [[, to make sure that it doesn't care about spaces.
http://stackoverflow.com/questions/669452/is-preferable-over-in-bash-scripts
and in this case, you don't need them at all
if grep -qi 'utf-*8' /etc/locale.conf; then
The above will fail and not execute the 'then' portion of the if statement if the grep fails, the -q also prevents it from out putting anything, and it will return an exit status of not one.
Even with that, the current PKGBUILD looks fine... just wanted to point it out.
Daniel
Daniel, Thanks a lot for that. Will read the reference you provided and amend the grep line.