fix: mkdir does not have a -f option

This commit is contained in:
silver 2024-09-22 22:32:41 +01:00
parent 3981f79461
commit 6a375bb442
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -26,11 +26,11 @@ runs:
- name: "Ensure public_html exists" - name: "Ensure public_html exists"
shell: bash shell: bash
run: | run: |
ssh -v -i tmp.key ${{ inputs.username }}@skynet.skynet.ie "mkdir -p -f ~/public_html && chmod 711 ~ && chmod -R 755 ~/public_html" ssh -v -i tmp.key ${{ inputs.username }}@skynet.skynet.ie "mkdir -p ~/public_html && chmod 711 ~ && chmod -R 755 ~/public_html"
- name: "Ensure destination exists" - name: "Ensure destination exists"
shell: bash shell: bash
run: | run: |
ssh -v -i tmp.key ${{ inputs.username }}@skynet.skynet.ie "mkdir -p -f ~/public_html/${{ inputs.destination }}" ssh -v -i tmp.key ${{ inputs.username }}@skynet.skynet.ie "mkdir -p ~/public_html/${{ inputs.destination }}"
- name: "Copy files across" - name: "Copy files across"
shell: bash shell: bash
run: | run: |