|
|
|
@ -89,8 +89,8 @@ cp .config .defconfig
|
|
|
|
|
CT_DoAddFileToSample() {
|
|
|
|
|
source="$1"
|
|
|
|
|
dest="$2"
|
|
|
|
|
inode_s=$(ls -i "${source}" |awk '{ print $1; }')
|
|
|
|
|
inode_d=$(ls -i "${dest}" 2>/dev/null |awk '{ print $1; }' || true)
|
|
|
|
|
inode_s=$(ls -i "${source}" | ${awk} '{ print $1; }')
|
|
|
|
|
inode_d=$(ls -i "${dest}" 2>/dev/null | ${awk} '{ print $1; }' || true)
|
|
|
|
|
if [ "${inode_s}" != "${inode_d}" ]; then
|
|
|
|
|
cp "${source}" "${dest}"
|
|
|
|
|
fi
|
|
|
|
@ -132,7 +132,7 @@ read -p "Reporter name [${reporter_name}]: " reporter_name
|
|
|
|
|
read -p "Reporter URL [${reporter_url}]: " reporter_url
|
|
|
|
|
if [ -n "${reporter_comment}" ]; then
|
|
|
|
|
echo "Old comment:"
|
|
|
|
|
printf "${reporter_comment}\n" |sed -r -e 's/^/ > /;'
|
|
|
|
|
printf "${reporter_comment}\n" | ${sed} -r -e 's/^/ > /;'
|
|
|
|
|
fi
|
|
|
|
|
echo "Reporter comment (Ctrl-D to finish, '.' to use previous):"
|
|
|
|
|
reporter_comment=$(cat)
|
|
|
|
|