Skip to content

Commit

Permalink
Merge pull request #90 from yermulnik/skip_non-files_and_non-symlinks…
Browse files Browse the repository at this point in the history
…_when_listing_aliases
  • Loading branch information
MikeMcQuaid authored Aug 30, 2024
2 parents c028d93 + 0e376d3 commit 0b52b61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/aliases.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def remove(name)
def each(only)
Dir["#{BASE_DIR}/*"].each do |path|
next if path.end_with? "~" # skip Emacs-like backup files
next if File.directory?(path)

_shebang, _meta, *lines = File.readlines(path)
target = File.basename(path)
Expand Down

0 comments on commit 0b52b61

Please sign in to comment.