Skip to content

Commit

Permalink
Small bash if-statement fix
Browse files Browse the repository at this point in the history
  • Loading branch information
instantiator committed Feb 9, 2025
1 parent d3758f8 commit f2c2a3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion format-thread/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ runs:
shell: bash
run: |
# if the format binary is not found, download the latest binaries
if [[ ! -x "./bin/Presence.SocialFormat.Console" ]] && \
if [[ ! -x "./bin/Presence.Posting.Console" ]]; then
wget https://raw.githubusercontent.com/instantiator/presence/refs/heads/main/download-latest-binaries.sh && \
chmod +x download-latest-binaries.sh && \
./download-latest-binaries.sh --system linux-x64 --target-directory ./bin
fi
- name: Format thread
id: format-thread
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion post-thread/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ runs:
shell: bash
run: |
# if the format binary is not found, download the latest binaries
if [[ ! -x "./bin/Presence.Posting.Console" ]] && \
if [[ ! -x "./bin/Presence.Posting.Console" ]]; then
wget https://raw.githubusercontent.com/instantiator/presence/refs/heads/main/download-latest-binaries.sh && \
chmod +x download-latest-binaries.sh && \
./download-latest-binaries.sh --system linux-x64 --target-directory ./bin
fi
- name: Post thread
id: post-thread
shell: bash
Expand Down

0 comments on commit f2c2a3c

Please sign in to comment.