fix (#2943)
This commit is contained in:
parent
724127f466
commit
e2f1fdf37e
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue