This commit is contained in:
David Holdeman 2021-07-10 10:27:41 -05:00 committed by GitHub
parent 402548f757
commit ec1145db47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ for c in $CONNECTORS; do
exit 1;
fi
echo "IMG "$IMG
if [ $IMG ]; then
if [ "$IMG" != "null" ]; then
cp $(dirname $c)/$IMG $DIR
fi
ls $DIR

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/"
TEXT=$(sed -e "/\/\/\/DATA\/\/\//{a \ \`$1\ \`,\n///DATA///" -e "d}" $2)
TEXT=$(sed -e "/\/\/\/DATA\/\/\//{a \ \`$(echo ${1//\//\\/} | tr -d '\n')\ \`,\n///DATA///" -e "d}" $2)
if [ $? -ne 0 ]; then
echo "Error in append.sh"
exit 1;