Fix ORS in check_file_license.sh

This commit is contained in:
Sven Klemm 2018-12-15 12:21:36 +01:00 committed by JLockerman
parent 87b4d959c1
commit f73d5931aa

View File

@ -1,11 +1,11 @@
#!/bin/bash
get_c_license() {
awk 'BEGIN {ORS="\0"}{if($1 == "*/") {print; exit;}} {print}' $1
awk 'BEGIN {ORS=""}{if($1 == "*/") {print; exit;}} {print}' $1
}
get_sql_license() {
awk 'BEGIN {ORS="\0"}{if($1 == "") {print; exit;}} {print}' $1
awk 'BEGIN {ORS=""}{if($1 == "") {print; exit;}} {print}' $1
}
check_file() {