From: Zeljko Boros Date: Tue, 11 May 2021 22:03:09 +0000 (+0200) Subject: grep test postinst X-Git-Tag: debian/11.0.0~2 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=ed2bfc923b2ebcb41dfd0197922c4ed90910eb82;p=carnet-upgrade.git grep test postinst --- diff --git a/debian/postinst b/debian/postinst index 8b39c78..ebdc8c4 100644 --- a/debian/postinst +++ b/debian/postinst @@ -20,7 +20,7 @@ fi # perl se buni ako nema postavljen defaultni locale # stavit cemo en_US.UTF-8 -if [ ! $(grep -q "^en_US.UTF-8 UTF-8" /etc/locale.gen) ]; then +if ! grep -q "^en_US.UTF-8 UTF-8" /etc/locale.gen; then # generirat cemo najpotrebnije locale (HR, EN, te HR.UTF i EN.UTF8) cp_check_and_sed '# en_US.UTF-8 UTF-8' \ 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' \