File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
set -euo pipefail
7
7
# shellcheck source=scripts/lib.sh
8
- source " $( dirname " ${BASH_SOURCE[0]} " ) /.. /lib.sh"
8
+ source " $( dirname " $( dirname " $ {BASH_SOURCE[0]}" ) " ) /lib.sh"
9
9
10
- SCRIPT_DIR =$( dirname " ${BASH_SOURCE[0]} " )
10
+ APIDOCGEN_DIR =$( dirname " ${BASH_SOURCE[0]} " )
11
11
API_MD_TMP_FILE=$( mktemp /tmp/coder-apidocgen.XXXXXX)
12
12
13
13
cleanup () {
@@ -17,7 +17,7 @@ trap cleanup EXIT
17
17
18
18
log " Use temporary file: ${API_MD_TMP_FILE} "
19
19
20
- pushd " $SCRIPT_DIR /../.."
20
+ pushd " ${APIDOCGEN_DIR} /../.."
21
21
go run github.com/swaggo/swag/cmd/
[email protected] init \
22
22
--generalInfo=" coderd.go" \
23
23
--dir=" ./coderd,./codersdk" \
26
26
--parseDependency=true
27
27
popd
28
28
29
- pushd " $SCRIPT_DIR "
29
+ pushd " ${APIDOCGEN_DIR} "
30
30
npm ci
31
31
32
32
# Make sure that widdershins is installed correctly.
You can’t perform that action at this time.
0 commit comments