I guess this is OK for beginner developers, but for the long-term, I recommend only using repos like this for inspiration, and not for daily use.
Take a look at this script for example: https://github.com/alexanderepstein/Bash-Snippets/blob/maste... -- 257 lines, self-update function, tricks for functionality, a few encoding bugs. Instead, if you are sure you have "curl" installed, this entire thing can be made into 1-line script:
curl qrenco.de/"%*"
Sure, this 1-line cannot handle missing "curl" nor can it produce PNGs... but then it is way easier to understand, fix and enhance. And if you need PNGs, write another tiny script to make those. After all, shell scripts is all about customization and glue logic -- much better to leave "business logic" to other programming languages.
Take a look at this script for example: https://github.com/alexanderepstein/Bash-Snippets/blob/maste... -- 257 lines, self-update function, tricks for functionality, a few encoding bugs. Instead, if you are sure you have "curl" installed, this entire thing can be made into 1-line script:
Sure, this 1-line cannot handle missing "curl" nor can it produce PNGs... but then it is way easier to understand, fix and enhance. And if you need PNGs, write another tiny script to make those. After all, shell scripts is all about customization and glue logic -- much better to leave "business logic" to other programming languages.