Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
ff5be590
提交
ff5be590
authored
5月 03, 2016
作者:
Brian West
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweak fscore_pb to use new pastebin API
上级
d9af043d
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
9 行删除
+11
-9
fscore_pb
support-d/fscore_pb
+11
-9
没有找到文件。
support-d/fscore_pb
浏览文件 @
ff5be590
...
@@ -85,21 +85,23 @@ if [ -z $user ] ; then
...
@@ -85,21 +85,23 @@ if [ -z $user ] ; then
fi
fi
post_cmd
=
""
post_cmd
=
""
command
-v
wget
>
/dev/null 2>&1
#command -v wget >/dev/null 2>&1
if
[
$?
-eq
0
]
;
then
#if [ $? -eq 0 ]; then
post_cmd
=
"wget --output-file=/dev/null --output-document=/tmp/fscore_pb.tmp/pb_out --http-user=pastebin --http-password=freeswitch https://pastebin.freeswitch.org --post-file=
$post_file
"
# post_cmd="curl -d name=fscore_pb --data-urlencode text@$post_file https://newpastebin.freeswitch.org/api/create"
echo
-n
"paste=Send&remember=0&poster=
$user
&format=none&expiry=f&code2="
>
$post_file
# post_cmd="wget --output-file=/dev/null --output-document=/tmp/fscore_pb.tmp/pb_out --http-user=pastebin --http-password=freeswitch https://pastebin.freeswitch.org --post-file=$post_file"
fi
# echo -n "paste=Send&remember=0&poster=$user&format=none&expiry=f&code2=" > $post_file
#fi
if
[
-z
"
$post_cmd
"
]
;
then
if
[
-z
"
$post_cmd
"
]
;
then
command
-v
curl
>
/dev/null 2>&1
command
-v
curl
>
/dev/null 2>&1
if
[
$?
-eq
0
]
;
then
if
[
$?
-eq
0
]
;
then
post_cmd
=
"curl -o /tmp/fscore_pb.tmp/pb_out --user pastebin:freeswitch http://pastebin.freeswitch.org -d paste=Send -d remember=0 -d poster=
$user
-d format=none -d expiry=f --data-urlencode code2@
$post_file
"
post_cmd
=
"curl -o /tmp/fscore_pb.tmp/pb_out -d name=fscore_pb --data-urlencode text@
$post_file
https://pastebin.freeswitch.org/api/create"
# post_cmd="curl -o /tmp/fscore_pb.tmp/pb_out --user pastebin:freeswitch http://pastebin.freeswitch.org -d paste=Send -d remember=0 -d poster=$user -d format=none -d expiry=f --data-urlencode code2@$post_file"
fi
fi
fi
fi
if
[
-z
"
$post_cmd
"
]
;
then
if
[
-z
"
$post_cmd
"
]
;
then
echo
"Unable to locate
wget or
curl."
echo
"Unable to locate curl."
exit
255
exit
255
fi
fi
...
@@ -174,8 +176,8 @@ mv $post_file $tmpdir
...
@@ -174,8 +176,8 @@ mv $post_file $tmpdir
echo
"Finished."
echo
"Finished."
if
[
-e
/tmp/fscore_pb.tmp/pb_out
]
;
then
if
[
-e
/tmp/fscore_pb.tmp/pb_out
]
;
then
pb
=
`
cat
/tmp/fscore_pb.tmp/pb_out
|
grep
parent_pid |
awk
-F
\"
'{print $6}'
`
pb
=
`
cat
/tmp/fscore_pb.tmp/pb_out
`
echo
"Please report
http://pastebin.freeswitch.org/
$pb
to the developers."
echo
"Please report
$pb
to the developers."
else
else
echo
"Please check recent posts on http://pastebin.freeswitch.org/ and find your issue to report to the developers."
echo
"Please check recent posts on http://pastebin.freeswitch.org/ and find your issue to report to the developers."
fi
fi
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论