aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdamb6
1 files changed, 5 insertions, 1 deletions
diff --git a/damb b/damb
index 96d6bab..612619c 100755
--- a/damb
+++ b/damb
@@ -152,6 +152,10 @@ verify_val()
{
# verify_val <value>
+ case "$1" in
+ *"\n"*) return 1 ;;
+ esac
+
case "$(file --brief --dereference --mime-type "$1")" in
audio/*|video/*) ;;
*)
@@ -216,7 +220,7 @@ set_clip()
{
if [ -n "$WAYLAND_DISPLAY" ]; then
dep_check "wl-paste"
- _clip="$(wl-paste)"
+ _clip="$(wl-paste -n)"
elif [ -n "$DISPLAY" ]; then
dep_check "xclip"
_clip="$(xclip -o)"