bin: fix string comparison in pbcopy_l/pbpaste_l
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
OS=$(uname)
|
OS=$(uname)
|
||||||
if [ "$OS" == "Linux" -o "$OS" == "FreeBSD" ] ; then
|
if [ "$OS" = "Linux" -o "$OS" = "FreeBSD" ] ; then
|
||||||
xsel -i -b
|
xsel -i -b
|
||||||
elif [ "$(uname)" == "Darwin" ] ; then
|
elif [ "$(uname)" = "Darwin" ] ; then
|
||||||
/usr/bin/pbcopy $*
|
/usr/bin/pbcopy $*
|
||||||
else
|
else
|
||||||
echo "Unknown OS."
|
echo "Unknown OS."
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
OS=$(uname)
|
OS=$(uname)
|
||||||
if [ "$OS" == "Linux" -o "$OS" == "FreeBSD" ] ; then
|
if [ "$OS" = "Linux" -o "$OS" = "FreeBSD" ] ; then
|
||||||
xsel -o -b
|
xsel -o -b
|
||||||
elif [ "$(uname)" == "Darwin" ] ; then
|
elif [ "$(uname)" = "Darwin" ] ; then
|
||||||
/usr/bin/pbpaste $*
|
/usr/bin/pbpaste $*
|
||||||
else
|
else
|
||||||
echo "Unknown OS."
|
echo "Unknown OS."
|
||||||
|
|||||||
Reference in New Issue
Block a user