Skip to content

Commit

Permalink
revert extra data (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez authored Mar 2, 2023
1 parent 6ff73d8 commit d957e67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions etc/add_license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ add_copyright() {
return
fi

# Check if first 14 bytes matches the word "// Copied from"
local line=$(head -c 14 $1)
if [ "$line" == "// Copied from" ]; then
echo "$1 has a third-party copyright notice" >&2
return
fi

echo "$copyright" | cat - $1 > temp && mv temp $1
}

Expand Down

0 comments on commit d957e67

Please sign in to comment.