prepare for fhem update
This commit is contained in:
13
prepare_update.sh
Executable file
13
prepare_update.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
rm controls_lametric.txt
|
||||
find ./FHEM -type f \( ! -iname ".*" \) -print0 | while IFS= read -r -d '' f;
|
||||
do
|
||||
echo "DEL ${f}" >> controls_lametric.txt
|
||||
out="UPD "$(stat -f "%Sm" -t "%Y-%m-%d_%T" $f)" "$(stat -f%z $f)" ${f}"
|
||||
echo ${out//.\//} >> controls_lametric.txt
|
||||
done
|
||||
|
||||
# CHANGED file
|
||||
echo "FHEM LaMetric last changes:" > CHANGED
|
||||
echo $(date +"%Y-%m-%d") >> CHANGED
|
||||
echo " - $(git log -1 --pretty=%B)" >> CHANGED
|
||||
Reference in New Issue
Block a user