Skip to content

Commit

Permalink
fix: matched multi bin/sub files
Browse files Browse the repository at this point in the history
  • Loading branch information
adoyle-h committed Oct 4, 2024
1 parent 2bf6cfe commit eea751a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion one-cmds/bin/enable.bash
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ main() {
done
else
for path in "${ONE_DIR}/enabled/repo/$repo/$t/$name"{,.bash,.sh,.opt.bash}; do
filepaths+=("$path")
if [[ -f "$path" ]]; then
filepaths+=("$path")
fi
done
fi

Expand Down
4 changes: 3 additions & 1 deletion one-cmds/bin/info.bash
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ main() {
done
else
for path in "${ONE_DIR}/enabled/repo/$repo/$t/$name"{,.bash,.sh,.opt.bash}; do
filepaths+=("$path")
if [[ -f "$path" ]]; then
filepaths+=("$path")
fi
done
fi

Expand Down

0 comments on commit eea751a

Please sign in to comment.