mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-21 07:46:30 -05:00
Adjusted WPT script to add a default name
This commit is contained in:
parent
390471c7b2
commit
4f2f138a5f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue