From 8e1a0e441897b77a66a690a152580a42e337400a Mon Sep 17 00:00:00 2001 From: MegaV0lt Date: Sat, 28 Sep 2019 17:57:10 +0200 Subject: [PATCH] Update install.sh Fix redirection --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 871bd0e..7ea5fd4 100755 --- a/install.sh +++ b/install.sh @@ -14,7 +14,7 @@ case "$INIT" in systemd) systemctl -q is-active log2ram && { echo 'ERROR: log2ram service is still running. Please run "sudo service log2ram stop" to stop it.' ; exit 1 ; } ;; openrc) - rc-service log2ram status 2>1 >/dev/null && { echo 'ERROR: log2ram service is still running. Please run "sudo rc-service log2ram stop" to stop it.' ; exit 1 ; } ;; + rc-service log2ram status >/dev/null 2>&1 && { echo 'ERROR: log2ram service is still running. Please run "sudo rc-service log2ram stop" to stop it.' ; exit 1 ; } ;; *) echo 'ERROR: could not detect init-system' ; exit 1 ;; esac