Skip to content

Commit

Permalink
CE: Ошибка "возврата коретки" в файле лицензии (fix #134)
Browse files Browse the repository at this point in the history
  • Loading branch information
slothfk committed Jan 23, 2024
1 parent cc2ed41 commit 468fa5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/1c_license_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function get_licenses_info {
( find /var/1C/licenses/ "${ALLUSERSPROFILE}/Application\ Data/1C/licenses" "${ALLUSERSPROFILE}/1C/licenses" -maxdepth 1 -name "*.lic" \
-exec awk '/^(Номер продукта|Product code|Срок действия|Valid till)/ {
str[FILENAME]=str[FILENAME]?str[FILENAME]":"gensub("^[^:]+[:] *","","g",$0):FILENAME":"gensub("^[^:]+[:] *","","g",$0)
} END { for (i in str) { print str[i] }}' {} \; 2>/dev/null ) |
} END { for (i in str) { print str[i] }}' {} \; 2>/dev/null ) | sed -re 's/\r//g' |
xargs -I license_file basename license_file |
sed -re 's/(0{7}10{3}1)5/\10/;
s/(0{7}[10]0)10{3}/\10500/;
Expand All @@ -61,4 +61,4 @@ case ${1} in
info) get_licenses_info ;;
list) get_license_list "$(check_ring_license)" ;;
*) error "${ERROR_UNKNOWN_MODE}" ;;
esac
esac

0 comments on commit 468fa5e

Please sign in to comment.