tFix cp command - Granular.jl - Julia package for granular dynamics simulation
HTML git clone git://src.adamsgaard.dk/Granular.jl
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 9bc01e9c4afd4765c0e358041265cfbd6c14f8c2
DIR parent a95a41c4e7d9b72dae9566e91d36f7bf04491d30
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 4 Dec 2018 08:24:51 +0100
Fix cp command
Diffstat:
M examples/image.jl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/examples/image.jl b/examples/image.jl
t@@ -14,7 +14,7 @@ img = FileIO.load(img_file)
# resize the image if it is too large, preceed with lopass to avoid antialias
max_pixels = 100^2
if size(img, 1)*size(img, 2) > max_pixels
- cp(img_file, "backup-" * img_file, remove_destination=true)
+ cp(img_file, "backup-" * img_file, force=true)
run(`convert $(img_file) -resize "$(max_pixels)@>" $(img_file)`)
img = FileIO.load(img_file)
end