From ad92df66a9a2b03a8641aab3866bc4d2857b8f67 Mon Sep 17 00:00:00 2001 From: Jacob Hrbek Date: Mon, 21 Oct 2019 17:42:08 +0200 Subject: [PATCH] w_try_cp: New wrapper Signed-off-by: Jacob Hrbek --- src/winetricks | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/winetricks b/src/winetricks index 461cf3142..27eeeb944 100755 --- a/src/winetricks +++ b/src/winetricks @@ -446,6 +446,11 @@ w_try_cd() w_try cd "$@" } +w_try_cp() +{ + cp "$1" "$2" || w_die "Unable to copy $1 in $2" +} + # Copy font files matching a glob pattern from source directory to destination directory. # Also remove any file in the destination directory that has the same name as # any of the files that we're trying to copy, but with different case letters.