使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
JustAnotherArchivist
/
little-things
关注
2
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
Fix output sometimes appearing after prompt
master
JustAnotherArchivist
1年前
父节点
75999e969c
当前提交
3440da3f9a
共有
1 个文件被更改
,包括
3 次插入
和
1 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+3
-1
iasha1check
+ 3
- 1
iasha1check
查看文件
@@ -42,7 +42,9 @@ echo
echo "SHA-1 comparison:"
sha1sum -c < <(printf "%s\n" "${iasha1sums[@]}") > >(perl -pe 's,^(.*)(?<!: OK)$,'"${RED}"'\1'"${RESET}"',; s,: OK$,: '"${GREEN}OK${RESET}"',; s,^, ,') 2>&1
if [[ $? -eq 0 ]]
shast=$?
wait # Wait for Perl to finish; Bash 4.4+ only
if [[ ${shast} -eq 0 ]]
then
echo "SHA-1 comparison: ${GREEN}OK${RESET}"
else
撰写
预览
正在加载...
取消
保存