Skip to content

Commit c507155

Browse files
committed
Add test for empty docs to Justfile (#30)
1 parent e8d1b3e commit c507155

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Justfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ check-pacakge:
2323
devtools::check()
2424

2525
# Deploy to CRAN
26-
cran-release: build docs manual check-pacakge
26+
cran-release: build docs manual _check-for-docs check-pacakge
2727
#!/usr/bin/env -S Rscript --no-save --no-restore
2828
devtools::release()
2929

@@ -32,6 +32,13 @@ docs:
3232
#!/usr/bin/env -S Rscript --no-save --no-restore
3333
devtools::document()
3434

35+
_check-for-docs:
36+
#!/bin/bash
37+
if [ -z "$(ls -A ./man)" ]; then
38+
echo "./man directory is empty"
39+
exit 30
40+
fi
41+
3542
# Build the PDF manual
3643
manual:
3744
#!/usr/bin/env -S Rscript --no-save --no-restore

0 commit comments

Comments
 (0)