diff options
author | dweller <dweller@cabin.digital> | 2024-03-18 05:08:39 +0200 |
---|---|---|
committer | dweller <dweller@cabin.digital> | 2024-03-18 05:08:39 +0200 |
commit | 48d6a9cdb9e9b0d72104ad2eb5214376ed621c19 (patch) | |
tree | e128e9b93745cbb66a3d9e85569d40005ab5f854 /xcopy | |
parent | ae4693676e49907442d53d320a7c758557c9770a (diff) |
Diffstat (limited to '')
-rwxr-xr-x | xcopy | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,18 +1,15 @@ -#!/bin/sh +#!/bin/sh -e # # Copyright (C) 2023 dwlr <dweller@cabin.digital> # # BSD 3-Clause License (BSD-3-Clause) # See LICENSE for details -set -e - { echo "" # TODO: why does it need a \n before the list? - for i in "$@"; do - echo "file://$(realpath ${i})" + echo "file://$(realpath "$i")" done } | xclip -sel clipboard -i -r -t text/uri-list |