Comment

Comment by sacnoradhq

I don't know where you learned shell scripting, but your formatting is very confusing and nonstandard.

- while...; do / if ...; then

- space before ;;

- no space before case match

- use util-linux getopt because getopts doesn't handle long args

- DRY with a die() function rather than exits littered all over

parent sacnoradhq 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton