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 Fri, Sep 6, 21:31
derecksonPushed on Fri, Sep 6, 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