2021-02-10 15:52:19 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/"
|
2021-05-30 16:19:26 -07:00
|
|
|
TEXT=$(sed -e "/\/\/\/DATA\/\/\//{a \ \`$1\ \`,\n///DATA///" -e "d}" $2)
|
2021-07-10 07:12:22 -07:00
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "Error in append.sh"
|
|
|
|
exit 1;
|
|
|
|
fi
|
2021-02-10 15:52:19 -08:00
|
|
|
echo "$TEXT" > $2
|