HomeDevCentral

Prevent globbing and word splitting for shell script name

Description

Prevent globbing and word splitting for shell script name

Summary:
Shellcheck highlights an issue with the shell script snippet:

In roles/core/certificates/files/delete-certbot-certificate.sh line 28:
    echo "Usage: $(basename $0) <certificate>" >&2
                            ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean:
    echo "Usage: $(basename "$0") <certificate>" >&2

Test Plan: Tested with new script in rOPS

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D3429

Details

Provenance
derecksonAuthored on Sep 6 2024, 21:31
derecksonPushed on Sep 6 2024, 21:38
Reviewer
dereckson
Differential Revision
D3429: Prevent globbing and word splitting for shell script name
Parents
rSNIPPETS1d533ea71273: Add PHP config template
Branches
Unknown
Tags
Unknown