Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
bin: Fix bangline
Browse files Browse the repository at this point in the history
Accept usage of bashisms
  • Loading branch information
h3xx committed Sep 23, 2021
1 parent 95a3c6c commit 40e2f2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions home/bin/fontview.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

HELP_MESSAGE() {
local EXIT_CODE="${1:-0}"
Expand All @@ -10,7 +10,7 @@ Display an image of a font file.
-t TEXT Show TEXT instead of default.
-- Terminate options list.
Copyright (C) 2015 Dan Church.
Copyright (C) 2015-2017 Dan Church.
License GPLv3+: GNU GPL version 3 or later (http://gnu.org/licenses/gpl.html).
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
Expand Down Expand Up @@ -46,7 +46,7 @@ trap 'cleanup' EXIT

fontimage_args=()

if [ -n "$TEXT" ]; then
if [[ -n "$TEXT" ]]; then
fontimage_args+=(--text "$TEXT")
fi

Expand Down

0 comments on commit 40e2f2f

Please sign in to comment.