Skip to content

Commit cf5fa2c

Browse files
authored
Merge pull request #33 from budlabs/next
dont overwrite symlinks
2 parents 6786715 + 3cc91bf commit cf5fa2c

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

docs/releasenotes/0_next.md

+3-20
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
### 2022.06.30.1
1+
### 2022.07.24
22

3-
Fixed issue where program needed a restart to account
4-
for new size of window.
5-
6-
Support for `--lines LINES` which will set the maximium
7-
number of preview lines. This setting can also be set
8-
in the config file (lines=2) or environment variable
9-
TYPISKT_LINES.
10-
11-
Added `--details` option, which will write detailed
12-
information about the last test to a file in
13-
`~/.cache/typiskt/details`.
14-
15-
Fixed issue with certain locales not printing the
16-
correct value due to different decimal separator.
17-
18-
Added support for XDG_CACHE_HOME.
19-
20-
Fixed an issue where escape codes of arrow keys
21-
could appear in the prompt in excercise mode.
3+
Fixed an issue where if scorefile (`~/.cache/typiskt/scorefile`)
4+
was symlinked. the link was replaced by a regular file.

docs/releasenotes/2022.06.30.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
### 2022.06.30.1
2+
3+
Fixed issue where program needed a restart to account
4+
for new size of window.
5+
6+
Support for `--lines LINES` which will set the maximium
7+
number of preview lines. This setting can also be set
8+
in the config file (lines=2) or environment variable
9+
TYPISKT_LINES.
10+
11+
Added `--details` option, which will write detailed
12+
information about the last test to a file in
13+
`~/.cache/typiskt/details`.
14+
15+
Fixed issue with certain locales not printing the
16+
correct value due to different decimal separator.
17+
18+
Added support for XDG_CACHE_HOME.
19+
20+
Fixed an issue where escape codes of arrow keys
21+
could appear in the prompt in excercise mode.

func/highscore.sh

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ highscore() {
99
tmp=$(mktemp)
1010

1111
mkdir -p "${f%/*}"
12+
[[ -L $f ]] && f=$(readlink -f "$f")
1213

1314
[[ -n $wpm ]] && {
1415
echo "$score $wpm $t" >> "$f"

0 commit comments

Comments
 (0)