From 6fc62b9e2afe5c8d1ee546a94976ace523ebc941 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Tue, 28 Jan 2020 15:36:46 +0200 Subject: [PATCH] oops, copy target missing --- files/cclip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/cclip b/files/cclip index f53bc93..e33fe0c 100755 --- a/files/cclip +++ b/files/cclip @@ -158,7 +158,7 @@ _read_menu() { _read() { - [[ -e "$STORAGE/$NAME" ]] || { + [[ -e "$STORAGE/$NAME" || -L "$STORAGE/$NAME" ]] || { _msg "No such clipboard: '$NAME'" return } @@ -193,7 +193,7 @@ _read_files() { # name, file mv "$STORAGE/$1" "$2" else echo Pasting "${1}$to" - cp -aT + cp -aT "$STORAGE/$1" "$2" fi }