From 64b0b7e7d48b41df92c01f5410f47a60bce3728a Mon Sep 17 00:00:00 2001 From: salmon Date: Sun, 9 Aug 2026 23:31:58 +0200 Subject: Make install.sh POSIX sh so it runs without bash --- install.sh | 6 +++--- 1 file 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 @@ -#!/bin/bash +#!/bin/sh # This file is a part of RSPlayer # Licensed under the GPL-3.0 License @@ -7,7 +7,7 @@ set -e -if ping -W 2 -c 1 codeberg.org >&/dev/null; then +if ping -W 2 -c 1 codeberg.org >/dev/null 2>&1; then echo "Updating the repo..." git pull 2>/dev/null fi @@ -40,7 +40,7 @@ else mkdir -p ~/.config/systemd/user cp rsplayer.service ~/.config/systemd/user/ - if systemctl --user is-active default.target &>/dev/null; then + if systemctl --user is-active default.target >/dev/null 2>&1; then systemctl --user daemon-reload echo "Activating the daemon…" systemctl --user restart --now rsplayer.service -- cgit v1.2.3