Die Haskell Katastophe beim #Manjaro-Update ist gefunden. Es war #Shellcheck,
Warnung: manjaro-hello: Lokale Version (0.7.0-6) ist neuer als extra (0.7.0-5)
Glaub ich zumindest
Ich hab dann mal vorsichtshalber die snap Version installiert.
funktioniert 😃
So now I'm also done with the latest version of the #Mastodon maintenance script.
It got some new features and also #shellcheck is happy with me :rm_stickingouttongue:
It started in the #Fedimins forum and meanwhile it arrived at #Codeberg, I hope it can help one or the other.
#mastodon #shellcheck #fedimins #codeberg
Prüfe deine Shellscripte mit #Shellcheck !
Man muss nicht alles korrigieren was da angemahnt wird … manchmal geht das auch gar nicht… aber wenn Shellcheck keine Rückmeldung schickt, dann freut sich der Bastler.😃
https://www.shellcheck.net/
Na so was ?!
#Shellcheck mag mein sed Kommando nicht.
Ich soll bashinternes Ersetzen benutzen !
Sag mal, gehts noch?
SC2001
https://www.shellcheck.net/wiki/SC2001
Use ShellCheck to find common shell scripting errors https://www.admin-magazine.com/News/Debug-Your-Shell-Scripts-with-ShellCheck #Shell #ShellCheck #scripting #OpenSource #FOSS #Linux #tools #utility
#shell #shellcheck #scripting #opensource #foss #linux #tools #utility
It's a good thing that #linter documentation of errors raised seems to be coalescing around the "Problematic code / Correct code / Rationale" pattern.
Does anyone know if there's a name for this pattern of #documentation ?
The first tool I saw doing this was #shellcheck - here's an example of an error page: https://github.com/koalaman/shellcheck/wiki/SC2162
#linter #documentation #shellcheck
If you use VS Code and write bash, but you're not actually very good at bash, ShellCheck is great. It'll show you where you make mistakes that can be non-obvious and encourage you to use modern syntax:
https://marketplace.visualstudio.com/items?itemName=timonwong.shellcheck
#vscode #bash #linter #shellcheck #code #shell
#vscode #bash #linter #shellcheck #code #shell
@zhenech well, yes, I do have #shellcheck wired in a bunch of builds, just not for all packages I'm touching today, from multiple machines, not all of them having proper editors/hooks/confs deployed. That's why I'm enjoying #lintian as the last line of defense before wasting time. 🙃
I just wrote a non-trivial shell script. #shellcheck only complained once, and its complaint is about something I *know* can't happen. From this I can only conclude that I have found a bug in shellcheck.
Not familiar with shellcheck? It's here <https://www.shellcheck.net/>, and if you ever write even the tiniest shell script and don't use it you are an EVIL BLASPHEMER, HERETIC AND SINNER, DOOMED TO THE FIERY PIT.
juhu! meine Idee eines #backup_tools projektes zum #backup / #restore von #grafana konfigurationen nimmt gestalt an:
* dashboards
* folder
* datasources
funktionieren schon und das einlesen in einen jungpersönlichen grafana- #docker ebenfalls.
damit ist das endziel, die produktivinstanz durch #cicd in #gitlab und/oder #github automatisch zu beschicken auch nicht mehr weit entfernt!
jetzt kommt erstmal noch bisschen #shellcheck #cicd ins projekt und dann wird veröffentlicht!
#backup_tools #backup #restore #grafana #docker #cicd #gitlab #github #shellcheck
Aaaaand now checking what bash version is present on Debian 8 Jessie (people like themselves some old Debians, yo), to see which of the fixes suggested by #shellcheck I should apply 😂
Der mit der #Bash tanzt:
#Shellcheck nervt, aber trotzdem will man seine Syntaxfehler wissen.
2. Zeile nach dem Shebang diese Zeile reinschieben
/usr/bin/shellcheck "${0##*/}"
Der Code wird jetzt bei jedem Start geprüft.
https://www.untergang.de/index.php/linux-blog/bash-syntax-kontrollieren-in-kate.html
@blinry Pro-tip when using #shellcheck: use it as a learning tool as well!
Sometimes you might find an error which you really think is harmless. Go read the SCxxxx wiki documentation ! You'll learn how your code can break, and how cursed shell scripting can be 🙂
Spellcheck is "written in Haskell, if you're into that sort of thing."
Another similar tool is Hadolint at
https://github.com/hadolint/hadolint
"Dockerfile linter, validate inline bash, written in Haskell"
Linters are great especially when you use them at the start of a project!
#shellcheck #hadolint #haskell #bash
@shibao shell scripting is so finicky that I made it a habit to run them through #shellcheck just to be sure
How To Find Bugs In Your Shell Scripts Using ShellCheck On Linux #ShellCheck #ShellScripting #Scripting #Haskell #Opensource #Linux #Unix
https://ostechnix.com/shellcheck-free-utility-find-bugs-shell-scripts/
#UNIX #Linux #OpenSource #Haskell #scripting #shellscripting #shellcheck
Yet another reminder that #shellcheck is is an amazing and essential tool for shell scripting. I just used it to check a shell script on mine and it perfectly caught some of the faults and made constructive criticism. Also there were some points that I didn't know why it is considering a mistake, and then I realized every error has a code and a URL and the bottom of the list that contains perfect and clean explanation of why this is a mistake. I highly suggest it: