fix
This commit is contained in:
parent
5c6928cd91
commit
4b0f8db334
1 changed files with 13 additions and 5 deletions
|
@ -1,7 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
: ${1?"Aufruf: $0 <ascii text Datei>"}
|
set -e
|
||||||
while read line; do
|
|
||||||
escapedLine=$(echo $line | sed 's/\([$\"`]\)/\\\1/g')
|
format=$(echo ${1##*.})
|
||||||
echo "echo -e \"$escapedLine\""
|
if [ $format != "jpg" ]
|
||||||
done < $1
|
then
|
||||||
|
convert $1 /tmp/logo.jpg
|
||||||
|
else
|
||||||
|
cp $1 /tmp/logo.jpg
|
||||||
|
fi
|
||||||
|
jp2a --background=dark --invert --colors /tmp/logo.jpg --output=/tmp/logo.txt
|
||||||
|
while IFS= read -r line; do
|
||||||
|
echo "echo -e \"$line\""
|
||||||
|
done < /tmp/logo.txt
|
||||||
|
|
Loading…
Reference in a new issue