Skip to content

Commit

Permalink
Use command expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
kmicklas committed Jun 9, 2024
1 parent 29b6a25 commit 26c3c11
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ jobs:
run: |
ls /usr/lib/postgresql
ls /usr/lib/postgresql/*/bin
export PATH=$PATH:/usr/lib/postgresql/*/bin
echo explicit
/usr/lib/postgresql/*/bin/initdb --help
echo with path
PATH=$PATH:/usr/lib/postgresql/*/bin initdb --help
echo by path: $PATH
export PATH=$PATH:/usr/lib/postgresql/$(ls /usr/lib/postgresql | head -n 1)/bin
echo path: $PATH
# echo explicit
# /usr/lib/postgresql/*/bin/initdb --help
# echo with path
# PATH=$PATH:/usr/lib/postgresql/*/bin initdb --help
# echo by path: $PATH
initdb --help
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
Expand Down

0 comments on commit 26c3c11

Please sign in to comment.