Skip to content

Commit 5e18d16

Browse files
committed
clean script c, improve performance
1 parent 53e7d36 commit 5e18d16

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,13 @@
77
# $ echo "hello world!" | c
88
#
99
# @author Jerry Lee
10-
11-
readonly PROG=`basename $0`
12-
1310
copy() {
14-
local name=$(uname | tr A-Z a-z)
15-
16-
case "${name}" in
17-
darwin*)
11+
case "`uname`" in
12+
Darwin*)
1813
pbcopy ;;
19-
cygwin*)
14+
CYGWIN*)
2015
clip ;;
21-
mingw*)
16+
MINGW*)
2217
clip ;;
2318
*)
2419
xsel -b ;;

0 commit comments

Comments
 (0)