if ! command >/dev/null 2>&1; then
        echo "failed"
      else
        echo "succeed"
      fi
      
      Shell language logo

      command failure check

      Shell public recipes

      Shortcut: command.failure.check

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.