run.sh 243 B

12345678910
  1. #!/bin/bash
  2. DIR="$(cd "$(dirname "$0")" && pwd)"
  3. if [ -x "$DIR/bin/btop" ]; then
  4. exec "$DIR/bin/btop" "$@"
  5. elif [ -x "$DIR/build/btop" ]; then
  6. exec "$DIR/build/btop" "$@"
  7. else
  8. echo "btop binary not found; run make first" >&2
  9. exit 1
  10. fi