Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 64d08a0de3 | |||
| dd18bc3367 |
@@ -100,7 +100,6 @@ favicon = ""
|
||||
|
||||
## Credits
|
||||
|
||||
- Markdown to html conversion based on [markdown.bash](https://github.com/chadbraunduin/markdown.bash) by [chadbraunduin](https://github.com/chadbraunduin)
|
||||
- Default css style and html template based on _[kew](https://github.com/uint23/kew)_ by [uint23](https://github.com/uint23)
|
||||
|
||||
>[!WARNING]
|
||||
|
||||
11
kewt.sh
11
kewt.sh
@@ -6,7 +6,7 @@ die() {
|
||||
}
|
||||
|
||||
usage() {
|
||||
invoked_as="${KEWT_INVOKED_AS:-$0}"
|
||||
invoked_as=$(basename "${KEWT_INVOKED_AS:-$0}")
|
||||
cat <<EOF
|
||||
Usage: $invoked_as [--from <src>] [--to <out>]
|
||||
$invoked_as [src] [out]
|
||||
@@ -155,7 +155,14 @@ ensure_root_defaults
|
||||
src="${src%/}"
|
||||
out="${out%/}"
|
||||
|
||||
[ -d "$src" ] || die "Source directory '$src' does not exist."
|
||||
if [ ! -d "$src" ]; then
|
||||
if [ "$src" = "site" ]; then
|
||||
usage
|
||||
exit 1
|
||||
else
|
||||
die "Source directory '$src' does not exist."
|
||||
fi
|
||||
fi
|
||||
|
||||
IGNORE_ARGS="-name '.kewtignore' -o -path '$src/.*'"
|
||||
|
||||
|
||||
@@ -100,7 +100,6 @@ favicon = ""
|
||||
|
||||
## Credits
|
||||
|
||||
- Markdown to html conversion based on [markdown.bash](https://github.com/chadbraunduin/markdown.bash) by [chadbraunduin](https://github.com/chadbraunduin)
|
||||
- Default css style and html template based on _[kew](https://github.com/uint23/kew)_ by [uint23](https://github.com/uint23)
|
||||
|
||||
>![WARNING]
|
||||
|
||||
Reference in New Issue
Block a user