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