aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsalmon <salmonik@tuta.io>2026-08-09 23:31:58 +0200
committersalmon <salmonik@tuta.io>2026-08-09 23:31:58 +0200
commit64b0b7e7d48b41df92c01f5410f47a60bce3728a (patch)
treed6af0e60e158db7d85816c67eb89fb4c59daa7f2
parentAdd FreeBSD rc.d service, install completions only for installed shells (diff)
downloadrsplayer-64b0b7e7d48b41df92c01f5410f47a60bce3728a.tar.gz
rsplayer-64b0b7e7d48b41df92c01f5410f47a60bce3728a.zip
Make install.sh POSIX sh so it runs without bash
-rwxr-xr-xinstall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index 9280507..07cdf74 100755
--- a/install.sh
+++ b/install.sh
@@ -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
8set -e 8set -e
9 9
10if ping -W 2 -c 1 codeberg.org >&/dev/null; then 10if 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
13fi 13fi
@@ -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