Skip to content

Commit

Permalink
fix: do not print logo twice when operation is help
Browse files Browse the repository at this point in the history
  • Loading branch information
gamemaker1 committed Jun 15, 2021
1 parent b90e543 commit 718b828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yeet
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ else
echo "PRINT_LOGO=true" >> "$CONFIG_FILE_PATH"

# If there is no config yet and the operation is not 'help', definitely print the logo
if [[ "$1" != "-h" ]] || [ -z "$1" ]; then
if [[ "$1" != "-h" ]] && ! [ -z "$1" ]; then
print_logo
fi
# Then turn it off, we don't want to print again
Expand All @@ -137,7 +137,7 @@ fi
# Print out the logo, unless specified otherwise in the config (generated using command `figlet -f pagga YEET`)
if [[ "$PRINT_LOGO" == "true" ]]; then
# Make sure the operation is not 'help', else we will be printing the logo twice
if [[ "$1" != "-h" ]] || [ -z "$1" ]; then
if [[ "$1" != "-h" ]] && ! [ -z "$1" ]; then
print_logo
fi
fi
Expand Down

0 comments on commit 718b828

Please sign in to comment.