Skip to content

Commit

Permalink
Add coreutils as a macOS dependency, check if timeout is available
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrfv committed Feb 26, 2024
1 parent 36e7e61 commit 0f98057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ then execute this command `sudo dnf install p7zip p7zip-plugins adb curl newt pv

**Warning:** I've recently switched to an AMD CPU+NVIDIA GPU rig, making it impossible for me to test this script on macOS without buying a Mac. Whilst there is nothing that could prevent this script from running on macOS, you are on your own and support will be very limited. (script last tested on Janurary 11th 2023)

1. Install p7zip and adb using [Homebrew](https://brew.sh/):
1. Install dependencies using [Homebrew](https://brew.sh/):

```bash
# Tip: Run these commands in the built-in Terminal app (or iTerm if you have that installed).
# Install Homebrew if you haven't yet
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# If you already have Homebrew installed, just run these 2 commands:
brew install --cask android-platform-tools
brew install p7zip pv bash dialog
brew install p7zip pv bash dialog coreutils
```

2. Follow the steps 2 and 3 from the install guide for Linux.
Expand Down
4 changes: 2 additions & 2 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ else
fi
fi

# Check if other dependencies are installed: adb, tar, pv, 7z, bc
# Check if other dependencies are installed: adb, tar, pv, 7z, bc, timeout
# srm is optional so we don't check for it
commands=("tar" "pv" "7z" "adb" "bc")
commands=("tar" "pv" "7z" "adb" "bc" "timeout")

# Add kdialog to the list of commands if we're running in WSL
if [ "$(uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip')" ]; then
Expand Down

0 comments on commit 0f98057

Please sign in to comment.