aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/dragdrop
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dragdrop')
-rwxr-xr-xplugins/dragdrop5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/dragdrop b/plugins/dragdrop
index ee4fc20..bbbd19e 100755
--- a/plugins/dragdrop
+++ b/plugins/dragdrop
@@ -24,8 +24,7 @@ fi
add_file ()
{
- printf "%s" "$@" >> "$selection"
- printf "\0" >> "$selection"
+ printf '%s\0' "$@" >> "$selection"
}
use_all ()
@@ -57,7 +56,7 @@ elif [ "$resp" = "d" ]; then
use_all
"$dnd" "$all" "$PWD/"* &
elif [ "$resp" = "r" ]; then
- printf > "$selection"
+ true > "$selection"
"$dnd" --print-path --target | while read -r f
do
if printf "%s" "$f" | grep '^\(https\?\|ftps\?\|s\?ftp\):\/\/' ; then