diff options
| -rwxr-xr-x | install.sh | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # This file is a part of RSPlayer | 3 | # This file is a part of RSPlayer |
| 4 | # Licensed under the GPL-3.0 License | 4 | # Licensed under the GPL-3.0 License |
| @@ -7,7 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | set -e | 8 | set -e |
| 9 | 9 | ||
| 10 | if ping -W 2 -c 1 codeberg.org >&/dev/null; then | 10 | if ping -W 2 -c 1 codeberg.org >/dev/null 2>&1; then |
| 11 | echo "Updating the repo..." | 11 | echo "Updating the repo..." |
| 12 | git pull 2>/dev/null | 12 | git pull 2>/dev/null |
| 13 | fi | 13 | fi |
| @@ -40,7 +40,7 @@ else | |||
| 40 | mkdir -p ~/.config/systemd/user | 40 | mkdir -p ~/.config/systemd/user |
| 41 | cp rsplayer.service ~/.config/systemd/user/ | 41 | cp rsplayer.service ~/.config/systemd/user/ |
| 42 | 42 | ||
| 43 | if systemctl --user is-active default.target &>/dev/null; then | 43 | if systemctl --user is-active default.target >/dev/null 2>&1; then |
| 44 | systemctl --user daemon-reload | 44 | systemctl --user daemon-reload |
| 45 | echo "Activating the daemon…" | 45 | echo "Activating the daemon…" |
| 46 | systemctl --user restart --now rsplayer.service | 46 | systemctl --user restart --now rsplayer.service |
