[projects/geninitrd] luks: use posix compliant "AND" operator
atler
atler at pld-linux.org
Wed Sep 28 18:47:17 CEST 2022
commit c24b06c262c67bd1e87f82c04262a25323f25574
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Sep 28 17:29:36 2022 +0200
luks: use posix compliant "AND" operator
mod-luks.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/mod-luks.sh b/mod-luks.sh
index 453b2f9..384317d 100644
--- a/mod-luks.sh
+++ b/mod-luks.sh
@@ -122,7 +122,7 @@ luks_crypttab() {
while read dst src key opt; do
[ "$dst" != "$LUKSNAME" ] && continue
- if [ -n "$key" -a "x$key" != "xnone" ]; then
+ if [ -n "$key" ] && [ "x$key" != "xnone" ]; then
if test -e "$key" ; then
mode=$(LC_ALL=C ls -l "$key" | cut -c 5-10)
owner=$(LC_ALL=C ls -l $key | awk '{ print $3 }')
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/ddf87c79b74022a30cec286191d31d186be184cf
More information about the pld-cvs-commit
mailing list