Adjusted WPT script to add a default name

This commit is contained in:
Brandon Rozek 2022-07-03 20:43:30 -04:00
parent 390471c7b2
commit 4f2f138a5f

View file

@ -15,10 +15,10 @@ if [ "$#" -ne 1 ]; then
fi
getLLA="$(dirname $0)/getLLA.sh"
LLA=$("$getLLA" "$1")
IMAGE_NAME=$(basename "$1")
LLA=$("$getLLA" "$1" | tr " " "\n")
IMAGE_NAME="<img src="$(basename "$1")"/>"
NAME_ARG=${2-""}
NAME=$([ "$NAME_ARG" != "" ] && echo "$NAME_ARG" || echo "$IMAGE_NAME")
echo -e "$LLA\n$NAME" | xargs $(dirname $0)/LLA2WPT.sh
echo -e "$LLA\n$NAME" | xargs -d "\n" $(dirname $0)/LLA2WPT.sh