diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2025-06-07 22:10:27 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2025-06-07 22:12:27 -0400 |
commit | e5968416719e4017435aabe02ccd0f49113f7e66 (patch) | |
tree | 33c1ee0577b7c777eb2b67460b0c19d679fe2b2a /org/env.org | |
parent | updates to nix flake, envrc-nix, gitignore (diff) |
- appear to be related to finding program install
path across symlinked directories, fixed using
suitable ruby check
Diffstat (limited to 'org/env.org')
-rw-r--r-- | org/env.org | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org/env.org b/org/env.org index 87feb912..99e127ae 100644 --- a/org/env.org +++ b/org/env.org @@ -5943,10 +5943,10 @@ WOK : "#{md.opt.sisu_data_dir?}/sisu/image" images=%W[bullet_09.png arrow_next_red.png arrow_prev_red.png arrow_up_red.png] images.each do |i| #move to avoid repeated tests - if FileTest.file?("#{src}/#{i}") + if Pathname#exist?("#{src}/#{i}") FileUtils::cp("#{src}/#{i}","#{pth}/#{i}") \ - unless FileTest.file?("#{pth}/#{i}") - else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}]} + unless Pathname#exist?("#{pth}/#{i}") + else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}] [#{src}/#{i}]} end end pth |