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.
ブラウザのサイドパネルにこのツールを固定
タブを切り替えずに Alt+M でいつでも即座に呼び出し可能。完全オフライン・無料。
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.
よくある質問 (FAQ)
BASH Script Safety Linter オンラインツール をお気に入りいただけましたか?エンジニア仲間に、広告なし・完全ローカルの安全なツールを共有しましょう!
MiniToolDesk は 100% 無料かつクライアントサイド動作です。皆様の応援が支えです。
関連開発ツール
Popular
SQL フォーマッター & 整形ツール
MySQL、PostgreSQL、SQLiteのSQLクエリをブラウザ内で安全に整形・インデント
Launch tool→
Hot
JWT デバッガー & デコーダー
JSON Web Token (JWT) のヘッダー、ペイロード、有効期限をローカルで安全に解析
Launch tool→
Popular
YAML / JSON 双方向コンバーター
YAMLとJSONをリアルタイムに双方向変換・構文検証・インデント調整
Launch tool→
Hot
開発者 & ギーク単位変換ツール
データ容量 (KB/KiB, MB/MiB, GB/GiB)、CSS (px/rem)、長さ、速度、温度を高精度変換
Launch tool→