diff options
| author | salmon <salmonik@tuta.io> | 2026-08-09 23:31:58 +0200 |
|---|---|---|
| committer | salmon <salmonik@tuta.io> | 2026-08-09 23:31:58 +0200 |
| commit | 64b0b7e7d48b41df92c01f5410f47a60bce3728a (patch) | |
| tree | d6af0e60e158db7d85816c67eb89fb4c59daa7f2 | |
| parent | Add FreeBSD rc.d service, install completions only for installed shells (diff) | |
| download | rsplayer-64b0b7e7d48b41df92c01f5410f47a60bce3728a.tar.gz rsplayer-64b0b7e7d48b41df92c01f5410f47a60bce3728a.zip | |
Make install.sh POSIX sh so it runs without bash
| -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 |
