Last active
September 18, 2025 00:22
-
-
Save dewomser/31902704b3ab38e8c862b97ef6515181 to your computer and use it in GitHub Desktop.
Shellcheck im Skript aufrufen. Selbstcheck
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wenn man an Bashscripten rumbastelt sollte man immer die Syntax prüfen z.B, mit Shellcheck | |
Um das nicht zu vergessen, kann man sich diese Zeile Code an den Anfang seines Skripts einbauen. Das Ausführen des Skripts dauert dann etwas länger. | |
$(which shellcheck) "${0##*/}" | |
Ausführungszeit kann man noch optimieren in dem man händisch "which shellcheck" ausführt und den ganzen Pfad ins Skript rein pastet.Dann muss Bash nicht suchen wo shellcheck installiert ist. |
Author
dewomser
commented
Sep 17, 2025

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment