mirror of
https://github.com/nasa/openmct.git
synced 2025-04-09 20:31:26 +00:00
[Licenses] Update license script
WTD-1051.
This commit is contained in:
parent
6314507a4c
commit
055034ae18
@ -1,12 +1,7 @@
|
||||
|
||||
LICENSE=`cat $3`
|
||||
MATCHES=`find $1 -name "*.$2" | grep -v /lib/`
|
||||
|
||||
for i in $MATCHES
|
||||
do
|
||||
if ! grep -q "$LICENSE" $i
|
||||
then
|
||||
cat $3 $i > "$i".new && mv "$i".new "$i"
|
||||
fi
|
||||
cat "$3" "$i" > "$i".new && mv "$i".new "$i"
|
||||
done
|
||||
|
||||
echo "$LICENSE"
|
Loading…
x
Reference in New Issue
Block a user