Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
midasuni
3y ago
0 comments
Share
If you need to follow these rules your script probably shouldn’t be written as a shell script.
0 comments
default
newest
oldest
IshKebab
3y ago
Ha yeah someone should make a single lint "Your script is over 100 lines. You should rewrite it in a sane language!"
iso1631
3y ago
Start every script with the boilerplate
#!/bin/bash if [[ `wc -l $0|cut -f 1 -d ' '` -gt 100 ]] then echo "No, this is too long!" exit fi
j
/
k
navigate · click thread line to collapse