bin: fix string comparison in pbcopy_l/pbpaste_l

This commit is contained in:
2025-03-20 10:25:12 +00:00
parent 2bb3d822f8
commit bd20738f80
2 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
#!/bin/sh
OS=$(uname)
if [ "$OS" == "Linux" -o "$OS" == "FreeBSD" ] ; then
if [ "$OS" = "Linux" -o "$OS" = "FreeBSD" ] ; then
xsel -i -b
elif [ "$(uname)" == "Darwin" ] ; then
elif [ "$(uname)" = "Darwin" ] ; then
/usr/bin/pbcopy $*
else
echo "Unknown OS."

View File

@@ -1,8 +1,8 @@
#!/bin/sh
OS=$(uname)
if [ "$OS" == "Linux" -o "$OS" == "FreeBSD" ] ; then
if [ "$OS" = "Linux" -o "$OS" = "FreeBSD" ] ; then
xsel -o -b
elif [ "$(uname)" == "Darwin" ] ; then
elif [ "$(uname)" = "Darwin" ] ; then
/usr/bin/pbpaste $*
else
echo "Unknown OS."