grep test postinst
authorZeljko Boros <Zeljko.Boros@carnet.hr>
Tue, 11 May 2021 22:03:09 +0000 (00:03 +0200)
committerZeljko Boros <Zeljko.Boros@carnet.hr>
Tue, 11 May 2021 22:03:09 +0000 (00:03 +0200)
debian/postinst

index 8b39c78..ebdc8c4 100644 (file)
@@ -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' \