Skip to content

Commit

Permalink
Fixed a bug that prevented gengetoptions parser from reading files in…
Browse files Browse the repository at this point in the history
… the current directory
  • Loading branch information
ko1nksm committed Jul 19, 2024
1 parent 662b881 commit 0b77ec7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gengetoptions
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ do_parser() {
# shellcheck disable=SC1090
case $FILE in
'' | - ) eval "$(cat)" ;;
*) . "$FILE" ;;
/* | ./* | ../*) . "$FILE" ;;
*) . "./$FILE" ;;
esac
generated=$(getoptions "$@")
printf '%s\n' "$generated" | {
Expand Down

0 comments on commit 0b77ec7

Please sign in to comment.