Skip to content

Commit

Permalink
w_try_cp: New wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Hrbek <kreyren@rixotstudio.cz>
  • Loading branch information
Jacob Hrbek committed Oct 21, 2019
1 parent f901868 commit ad92df6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ad92df6

Please sign in to comment.