From bd20738f80494661bef97c578abcfce63c2e782f Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Thu, 20 Mar 2025 10:25:12 +0000 Subject: [PATCH] bin: fix string comparison in pbcopy_l/pbpaste_l --- bin/pbcopy_l | 4 ++-- bin/pbpaste_l | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/pbcopy_l b/bin/pbcopy_l index bc9f478..a6c38cf 100755 --- a/bin/pbcopy_l +++ b/bin/pbcopy_l @@ -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." diff --git a/bin/pbpaste_l b/bin/pbpaste_l index cbf24dd..d959eca 100755 --- a/bin/pbpaste_l +++ b/bin/pbpaste_l @@ -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."