Skip to content

Commit

Permalink
improve regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Jan 31, 2021
1 parent 0ffa9c1 commit 0d3bdde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/subroutines
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ task_defvar() {
# show only lines with ++, we cannot use a pipe, since it would call
# _devfar in a subprocess. Then, variables are not defined
_defvar $class.var > $svar 2>&1
grep ^++ $svar| sed -e 's/\(.*PW\)=.*$/\1=XXXXXXXXXXXXX/'
grep -P '^\+\+ \w+=' $svar| sed -e 's/\(.*PW\)=.*$/\1=XXXXXXXXXXXXX/'
rm $svar
fi
done
Expand Down

0 comments on commit 0d3bdde

Please sign in to comment.