diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-16 21:26:46 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-16 21:26:46 +0200 | 
| commit | c3a1e8ed10749ee1e418541fb586e10175dc2288 (patch) | |
| tree | 8d88fd0232656b57cac27d26387b407f1d7a4279 | |
| parent | 56be5fbb7fbc5ec012a0f5e1e8808cc7cadc59b0 (diff) | |
made dmclip posix compliant
| -rwxr-xr-x | bin/guiscripts/dmclip | 6 | 
1 files changed, 3 insertions, 3 deletions
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  | 
