commit c24b06c262c67bd1e87f82c04262a25323f25574
Author: Jan Palus <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to