From c3a1e8ed10749ee1e418541fb586e10175dc2288 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 16 Apr 2023 21:26:46 +0200 Subject: made dmclip posix compliant --- bin/guiscripts/dmclip | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/guiscripts') diff --git a/bin/guiscripts/dmclip b/bin/guiscripts/dmclip index a1ca634..cd5c928 100755 --- a/bin/guiscripts/dmclip +++ b/bin/guiscripts/dmclip @@ -11,16 +11,16 @@ NotImage () { selection="$(echo "primary\nclipboard\nswap" | dmenu -l 1 -g 3 -p "selection:")" -if [[ "$selection" == "swap" ]] +if [ "$selection" = "swap" ] then clipboard="$(xclip -o)" xclip -o | xclip -sel c echo -n "$clipboard" | xclip -sel c exit -elif [ "$selection" == "" ] +elif [ "$selection" = "" ] then exit 1 -elif [ "$selection" == "primary" ] +elif [ "$selection" = "primary" ] then selection2="clipboard" else -- cgit v1.2.3