1#!/bin/bash
2# Copyright (c) Meta Platforms, Inc. and affiliates.
3#
4# This source code is licensed under the MIT license found in the
5# LICENSE file in the root directory of this source tree.
6
7# execute command
8"$@"
9
10# check status
11STATUS=$?
12if [ $STATUS == 0 ]; then
13  echo "Command " "$@" " completed successfully"
14else
15  echo "Command " "$@" " exited with error status $STATUS"
16fi
17