Skip to content

Commit 77b1bf9

Browse files
Small refactor
1 parent 2d8016b commit 77b1bf9

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

add_links.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,7 @@
44
# add_links.sh last_docs_version_dir
55
# add_links.sh 2_21
66

7-
last_docs_version_dir="$1"
8-
9-
echo $last_docs_version_dir
10-
11-
exit 0
12-
cd docs
13-
# Count number of dirs in /docs
14-
docsDirsCount=`find . -mindepth 1 -maxdepth 1 -type d | wc -l`
15-
# Get [-1] docs version
16-
# Substract functions-reference, reference-manual, stan-users-guide, current version and remove trailing /
17-
directory=`ls -d -- */ | sed -n "$(($docsDirsCount-4))"p | sed 's/.$//'`
18-
cd ..
7+
directory="$1"
198

209
mkdir docs/"$directory"_tmp
2110

0 commit comments

Comments
 (0)