-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.sh
More file actions
executable file
·46 lines (39 loc) · 914 Bytes
/
log.sh
File metadata and controls
executable file
·46 lines (39 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/data/data/com.termux/files/usr/bin/bash
DATE=$(date +%F_%H-%M)
FILE="logs/${DATE}.md"
mkdir -p logs
<<<<<<< HEAD
echo "# ${DATE} — Content Log" > $FILE
echo "" >> $FILE
echo "## LinkedIn" >> $FILE
echo "" >> $FILE
echo "## DEV" >> $FILE
echo "" >> $FILE
echo "## Comment" >> $FILE
echo "" >> $FILE
echo "## POST_LOG" >> $FILE
echo "" >> $FILE
# THIS is the correct way (multi-line paste)
nano $FILE
# Create file ONLY if it doesn't exist
if [ ! -f "$FILE" ]; then
echo "# ${DATE} — Content Log" > $FILE
echo "" >> $FILE
echo "## LinkedIn" >> $FILE
echo "" >> $FILE
echo "## DEV" >> $FILE
echo "" >> $FILE
echo "## Comment" >> $FILE
echo "" >> $FILE
echo "## POST_LOG" >> $FILE
echo "" >> $FILE
fi
a60dd59 (log: 2026-04-23_13-01)
# Open editor FIRST
nano $FILE
# THEN validate
~/HHI_Authority_Feed/validate.sh || exit 1
# THEN commit
git add .
git commit -m "log: $DATE"
git push