Detected Issues (4):
Line 1: Script does not enable "set -e" (errexit). Errors in commands will not halt script execution.WARNING
Suggested Fix: Add "set -euo pipefail" at top of script.
Line 2: Unquoted variable in "rm -rf $VAR". If VAR is empty, this expands to "rm -rf /".DANGER
Suggested Fix: Quote variable and check existence: rm -rf "${VAR:?var not set}/"
Line 3: "cd" command can fail silently, executing subsequent commands in unintended directory.WARNING
Suggested Fix: Use "cd <dir> || exit 1"
Line 4: Legacy backtick `cmd` syntax detected. Harder to nest and escape than $(cmd).INFO
Suggested Fix: Use modern $(cmd) expansion instead.
Fixe esta ferramenta no painel lateral do seu navegador
Acesse este utilitário a qualquer momento com Alt+M sem trocar de aba. 100% offline e gratuito.
How to use BASH Script Safety Linter
- 1Configure your parameters in the input form.
- 2Inspect the instant client-side calculated results.
- 3Copy the generated command or config snippet.
Private Client-Side Processing
Your data and server configurations never leave your browser.
Perguntas Frequentes (FAQ)
Gostando do Ferramenta Online BASH Script Safety Linter?Ajude outros desenvolvedores a descobrirem ferramentas privadas e sem anúncios!
MiniToolDesk é 100% gratuito e local. Seu apoio mantém o projeto sem anúncios.
Ferramentas Relacionadas
Popular
Formatador e Embelezador SQL
Formate, indente e embeleze consultas SQL para MySQL, PostgreSQL e SQLite em memória
Launch tool→
Hot
Depurador e Decodificador JWT
Decodifique e inspecione JSON Web Tokens (JWT) com total segurança na memória local
Launch tool→
Popular
Conversor de YAML para JSON
Conversão bidirecional entre YAML e JSON com validação sintática em tempo real
Launch tool→
Hot
Conversor de Unidades para Desenvolvedores
Conversão de armazenamento (KB/KiB, MB/MiB, GB/GiB), CSS (px para rem), comprimento e velocidade
Launch tool→