News for hackers. Stuff that matters.
Re:Elegant Bash Conditionals by anderskaseorg on Tuesday March 02, 2021 @09:30PM (#26323995)
There’s a typo on this line; a semicolon or newline is required before }:

    -[ $EUID -ne 0 ] && { echo You must be root; exit 1 }
    +[ $EUID -ne 0 ] && { echo You must be root; exit 1; }
Re:Elegant Bash Conditionals by cb321 on Wednesday March 03, 2021 @04:05AM (#26326199)
And also the same typo on the more general line just above what @anderskaseorg mentions (i.e. `{ expr }`) which should read `{ expr; }` (or line breaks instead of leading space/ trailing ';', etc. Such quirky syntax.)