This commit is contained in:
David Holdeman 2021-07-10 10:27:41 -05:00 committed by GitHub
parent 724127f466
commit e2f1fdf37e
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/" 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 if [ $? -ne 0 ]; then
echo "Error in append.sh" echo "Error in append.sh"
exit 1; exit 1;