Opened 5 months ago

Last modified 5 months ago

#33605 new task

Catch common bash runtime errors in fallback scripts

Reported by: teor Owned by:
Priority: Medium Milestone:
Component: Core Tor/Fallback Scripts Version:
Severity: Normal Keywords:
Cc: teor Actual Points:
Parent ID: Points: 0.5
Reviewer: Sponsor:


Let's gradually convert our scripts to use:

set -e
set -u
set -o pipefail

And maybe:


These settings help catch common errors in bash scripts at runtime:

(Shellcheck helps us catch errors while writing scripts, but it can't help with runtime failures.)

Follow-up to #33451.

Child Tickets

Change History (1)

comment:1 Changed 5 months ago by teor

Type: defecttask
Note: See TracTickets for help on using tickets.