Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 64d08a0de3 | |||
| dd18bc3367 |
@@ -100,7 +100,6 @@ favicon = ""
|
|||||||
|
|
||||||
## Credits
|
## 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)
|
- Default css style and html template based on _[kew](https://github.com/uint23/kew)_ by [uint23](https://github.com/uint23)
|
||||||
|
|
||||||
>[!WARNING]
|
>[!WARNING]
|
||||||
|
|||||||
11
kewt.sh
11
kewt.sh
@@ -6,7 +6,7 @@ die() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
invoked_as="${KEWT_INVOKED_AS:-$0}"
|
invoked_as=$(basename "${KEWT_INVOKED_AS:-$0}")
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Usage: $invoked_as [--from <src>] [--to <out>]
|
Usage: $invoked_as [--from <src>] [--to <out>]
|
||||||
$invoked_as [src] [out]
|
$invoked_as [src] [out]
|
||||||
@@ -155,7 +155,14 @@ ensure_root_defaults
|
|||||||
src="${src%/}"
|
src="${src%/}"
|
||||||
out="${out%/}"
|
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/.*'"
|
IGNORE_ARGS="-name '.kewtignore' -o -path '$src/.*'"
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,6 @@ favicon = ""
|
|||||||
|
|
||||||
## Credits
|
## 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)
|
- Default css style and html template based on _[kew](https://github.com/uint23/kew)_ by [uint23](https://github.com/uint23)
|
||||||
|
|
||||||
>![WARNING]
|
>![WARNING]
|
||||||
|
|||||||
Reference in New Issue
Block a user