Skip to content

Commit

Permalink
Refactored Bash Script to inline
Browse files Browse the repository at this point in the history
  • Loading branch information
swissbuechi committed Dec 24, 2022
1 parent 869a525 commit a94ff05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ runs:

- name: Wait for a VPN connection with default test ping ip host
if: inputs.test-ping-ip-host != null
run: counter=0; until [ $counter -ge 10 ] || ping -c1 ${{ inputs.test-ping-ip-host }}; do counter=$((counter+1)); sleep 2; done; [ $counter -ge 10 ] && exit 1
run: counter=0; until [ $counter -ge 10 ]; do if ping -c1 ${{ inputs.test-ping-ip-host }}; then exit 0; fi; counter=$((counter+1)); sleep 2; done; exit 1
shell: bash

- name: Show VPN log
Expand Down

0 comments on commit a94ff05

Please sign in to comment.