Browse Source

skip empty lines

master
Mikhail Novosyolov 1 year ago
parent
commit
ed3d3f905c
  1. 2
      DESTDIR/etc/security/pwquality.conf
  2. 1
      common.sh

2
DESTDIR/etc/security/pwquality.conf

@ -4,7 +4,7 @@ dcredit = 0
ucredit = 0
lcredit = 0
ocredit = 0
minclass = 0
minclass = 1
maxrepeat = 0
maxsequence = 0
maxclassrepeat = 0

1
common.sh

@ -110,6 +110,7 @@ _validate_email(){
_pw_parse_conf() {
while read -r line; do
if [[ "$line" =~ ^# ]] || [ -z "$line" ]; then continue; fi
case "$line" in
*=*) echo "${line// /}" ;;
*) echo "${line}=1" ;;

Loading…
Cancel
Save