File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,16 @@ if [ "$#" -ne 1 ]; then
10
10
ENTRY_SLUG=$( date +" %m-%d-%Y" )
11
11
fi
12
12
13
- ENTRY_PATH=./entries/$( date +' %s' ) -$( date +%Z) -$ENTRY_SLUG .md
13
+ ENTRY_PATH=./entries/$( date +' %s' ) -$ENTRY_SLUG .md
14
+ TIMEZONE=$( timedatectl show -p Timezone --value)
14
15
15
16
cat << ENTRY_START_TEXT > "$ENTRY_PATH "
17
+ ---
18
+ {
19
+ "timezone": "$TIMEZONE ",
20
+ "location": ""
21
+ }
22
+ ---
16
23
#
17
24
18
25
ENTRY_START_TEXT
Original file line number Diff line number Diff line change @@ -23,13 +23,6 @@ echo "running eslint..."
23
23
24
24
find . -name " *.js" -not -path " ./out/*" -not -path " */node_modules/*" -not -path " ./data/archivebox/archive/*" -not -path " ./static/deeplinks/*" -exec eslint {} + || FAIL=5
25
25
26
- echo " checking timezones..."
27
-
28
- if [[ $( find ./entries -mindepth 1 | cut -d- -f2 | grep -E -v -c " (EST)|(PST)|(PDT)|(ROC)" ) -gt 0 ]]; then
29
- echo " invalid timezone found :("
30
- FAIL=7
31
- fi
32
-
33
26
echo " checking broken links..."
34
27
35
28
# shellcheck disable=SC2044
You can’t perform that action at this time.
0 commit comments