Quantcast
Channel: Bashタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 2867

[Zsh/Bash] ifを使わず終了ステータス(正常/異常)によって処理を分岐

$
0
0
要約 以下のフローをワンライナーで実現しました。 コマンドAが正常終了 -> コマンドBを実行 コマンドAが異常終了 -> コマンドCを実行 Zsh: コマンドA && {コマンドB; true} …

Viewing all articles
Browse latest Browse all 2867

Trending Articles