Skip to content

Commit

Permalink
neofetch-ripper: fix alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jan 10, 2021
1 parent 818e094 commit 1a597f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/neofetch-ripper
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ while IFS= read -r line ; do
if [ -n "$NAME" ] ; then
echo "// Logo #$LOGOS: $NAME..."
NAME=`echo $NAME | tr \ _`
elif [ "$line" = "}" ] ; then # are we done with get_distro_ascii()?
elif [ "$line" = "}" ] ; then # are we done with get_distro_ascii()?
DONE="$LINE"
echo "// Closed get_distro_ascii at line $LINE"
break
fi
elif [ -z "$LOGOSTARTED" ]; then
elif [ -z "$LOGOSTARTED" ]; then
if echo "$line" | grep '^ *read -rd ' > /dev/null ; then
LOGOS=$((LOGOS + 1)) # found the start of a new logo!
LOGOSTARTED="$LINE"
echo -n "static const char $NAME[] = \""
fi
elif [ -n "$LOGOSTARTED" ]; then
elif [ -n "$LOGOSTARTED" ]; then
if [ "$line" = "EOF" ] ; then
echo "\";"
echo "// $NAME: $((LINE - LOGOSTARTED)) lines, done at line $LINE."
Expand Down

0 comments on commit 1a597f2

Please sign in to comment.