trouble 😼
This commit is contained in:
parent
afa3a2809d
commit
5ba3a5294c
1 changed files with 5 additions and 4 deletions
9
main.sh
9
main.sh
|
@ -8,16 +8,17 @@
|
|||
# -p is a path to write the jpg to
|
||||
# alternativly you can write the path into PICTURE_PATH
|
||||
set -E -o pipefail
|
||||
#shopt -s failglob
|
||||
set -x
|
||||
export LC_ALL='C.UTF8'
|
||||
|
||||
P_PATH="./label.jpg"
|
||||
I_TEXT="$(cat ./text.pango)"
|
||||
export SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
||||
|
||||
P_PATH="$SCRIPT_DIR/label.jpg"
|
||||
I_TEXT="$(cat "$SCRIPT_DIR"/text.pango 2>/dev/null || echo 'example text')"
|
||||
|
||||
P_PATH="${PICTURE_PATH:-$P_PATH}"
|
||||
I_TEXT="${IMAGE_TEXT:-$I_TEXT}"
|
||||
|
||||
|
||||
while getopts "p:t:" opt
|
||||
do
|
||||
case "$opt" in
|
||||
|
|
Loading…
Add table
Reference in a new issue