mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
10 lines
282 B
Bash
10 lines
282 B
Bash
|
#!/bin/bash
|
||
|
files=$(git status -s | grep " M " | cut -c4- | grep 'static/data/')
|
||
|
for file in $files; do
|
||
|
show="$(git --no-pager show HEAD~1:$file)"
|
||
|
IFS=$'\n' lines=($show)
|
||
|
for (( i=0; i<=5; i++ )) ;do
|
||
|
line=${lines[i]}
|
||
|
sed -i "$((i+1))s|^.*$|$line|" $file
|
||
|
done
|
||
|
done
|