From e293eb00a668f1bf3dc4d3f75854a627bc5e93a4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 1 Feb 2020 10:20:42 +0200 Subject: [PATCH] kiss: show error message on mv fail. Closes #103 --- kiss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index 54ee9f8..3b7e318 100755 --- a/kiss +++ b/kiss @@ -733,7 +733,8 @@ pkg_conflicts() { # Move the conflicting file to the choices directory # and name it according to the format above. mv -f "$tar_dir/$p_name/$con" \ - "$tar_dir/$p_name/$cho_dir/$p_name$con_name" + "$tar_dir/$p_name/$cho_dir/$p_name$con_name" 2>/dev/null || + die "File must be in ${con%/*} and not a symlink to it" regex_escape "$con" "/$cho_dir/$p_name$con_name"