diff --git a/README.md b/README.md index 2d9ea9f..8b7b69e 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ curl -s https://raw.githubusercontent.com/YouROK/TorrServer/master/installTorrSe Run in Terminal.app ```bash -curl -s https://raw.githubusercontent.com/YouROK/TorrServer/master/installTorrServerMac.sh -o installTorrserverMac.sh && chmod 755 installTorrServerMac.sh && sudo ./installTorrServerMac.sh +curl -s https://raw.githubusercontent.com/YouROK/TorrServer/master/installTorrServerMac.sh -o installTorrserverMac.sh && chmod 755 installTorrServerMac.sh && sudo bash ./installTorrServerMac.sh ``` Alternative install script for Intel Macs: diff --git a/installTorrServerMac.sh b/installTorrServerMac.sh index 93ccb0b..9d8f039 100755 --- a/installTorrServerMac.sh +++ b/installTorrServerMac.sh @@ -32,10 +32,10 @@ function killRunning() { } function cleanup() { - sudo rm -f /Library/LaunchAgents/*torrserver* 1>/dev/null 2>&1 - sudo rm -f /Library/LaunchDaemons/*torrserver* 1>/dev/null 2>&1 - sudo rm -f $HOME/Library/LaunchAgents/*torrserver* 1>/dev/null 2>&1 - sudo rm -f $HOME/Library/LaunchDaemons/*torrserver* 1>/dev/null 2>&1 + sudo rm -f /Library/LaunchAgents/*torrserver* + sudo rm -f /Library/LaunchDaemons/*torrserver* + sudo rm -f $HOME/Library/LaunchAgents/*torrserver* + sudo rm -f $HOME/Library/LaunchDaemons/*torrserver* killRunning } @@ -54,7 +54,6 @@ function uninstall() { echo "" } [[ $lang == "en" ]] && read -p ' Are you shure you want to delete TorrServer? (Yes/No) ' answer_del