diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-05-20 16:18:54 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-05-20 16:18:54 +0200 |
| commit | a90d5736ec8501463e6ac66768fe3bfd177366ec (patch) | |
| tree | 4e4e0d97c557c32125275503b63b4ba480517a3f /scripts/open_primary_in_browser.sh | |
| parent | 44c2c7946d5f4515a67fe4856c6904faad7d3bee (diff) | |
| download | dotfiles-a90d5736ec8501463e6ac66768fe3bfd177366ec.tar.gz dotfiles-a90d5736ec8501463e6ac66768fe3bfd177366ec.zip | |
scripts: fix open_primary_in_browser splitting its input
Diffstat (limited to 'scripts/open_primary_in_browser.sh')
| -rwxr-xr-x | scripts/open_primary_in_browser.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/open_primary_in_browser.sh b/scripts/open_primary_in_browser.sh index 9ae8243..9b6cc39 100755 --- a/scripts/open_primary_in_browser.sh +++ b/scripts/open_primary_in_browser.sh @@ -1,12 +1,12 @@ -#!/bin/bash +#!/bin/sh PRIMARY="" -if [[ ! -z "$WAYLAND_DISPLAY" ]] +if [ ! -z "$WAYLAND_DISPLAY" ] then PRIMARY=$(wl-paste -p) else PRIMARY=$(xclip -o -selection primary) fi -eval $BROWSER "$PRIMARY" +"$BROWSER" "$PRIMARY" |
