Fixed errors with empty '--image' and '--ascii' flags
This commit is contained in:
parent
3baf4c1cdd
commit
fc033b11d2
2 changed files with 5 additions and 2 deletions
1
1.1.md
1
1.1.md
|
@ -40,6 +40,7 @@
|
||||||
|
|
||||||
- Rename `--shuffledir` and `$shuffledir` to `shuffle_dir`.
|
- Rename `--shuffledir` and `$shuffledir` to `shuffle_dir`.
|
||||||
- Added support for ascii art inside of text files.
|
- Added support for ascii art inside of text files.
|
||||||
|
- If `--image` and `--ascii` are left empty we fallback to ascii distro mode.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
fetch --ascii "path/to/ascii" --ascii_color 2
|
fetch --ascii "path/to/ascii" --ascii_color 2
|
||||||
|
|
6
fetch
6
fetch
|
@ -1862,7 +1862,8 @@ while [ "$1" ]; do
|
||||||
--block_width) block_width="$2" ;;
|
--block_width) block_width="$2" ;;
|
||||||
|
|
||||||
# Image
|
# Image
|
||||||
--image) image="$2" ;;
|
--image) image="$2"
|
||||||
|
[ -z "$2" ] && image="ascii" ;;
|
||||||
--image_backend) image_backend="$2" ;;
|
--image_backend) image_backend="$2" ;;
|
||||||
--shuffle_dir) shuffle_dir="$2" ;;
|
--shuffle_dir) shuffle_dir="$2" ;;
|
||||||
--font_width) font_width="$2" ;;
|
--font_width) font_width="$2" ;;
|
||||||
|
@ -1876,7 +1877,8 @@ while [ "$1" ]; do
|
||||||
--clean) rm -rf "$imgtempdir" || exit ;;
|
--clean) rm -rf "$imgtempdir" || exit ;;
|
||||||
|
|
||||||
# Ascii
|
# Ascii
|
||||||
--ascii) image="ascii"; ascii="$2" ;;
|
--ascii) image="ascii"; ascii="$2"
|
||||||
|
[ -z "$2" ] && ascii="distro" ;;
|
||||||
--ascii_color) ascii_color="$2" ;;
|
--ascii_color) ascii_color="$2" ;;
|
||||||
--ascii_distro) ascii_distro="$2" ;;
|
--ascii_distro) ascii_distro="$2" ;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue