aks-engine/scripts/copyright-header.sh

12 строки
235 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
for i in $(find .. -type f -iname '*.go' ! -path '../vendor/*') # do not run on the vendor dir
do
if ! grep -q Copyright "$i"
then
cat copyright.txt "$i" > "$i".new && mv "$i".new "$i"
fi
done