about summary refs log tree commit diff stats
path: root/home-manager/config/river/init
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/config/river/init')
-rwxr-xr-xhome-manager/config/river/init7
1 files changed, 3 insertions, 4 deletions
diff --git a/home-manager/config/river/init b/home-manager/config/river/init
index 4c49489a..2f14fcaa 100755
--- a/home-manager/config/river/init
+++ b/home-manager/config/river/init
@@ -1,11 +1,10 @@
-#!/bin/sh
+#!/usr/bin/env dash
 # shellcheck disable=SC2086
 # shellcheck source=/dev/null
-. ~/.local/lib/shell/lib
+. %SHELL_LIBRARY_PATH
 
 err_fail() {
-    "$@"
-    if [ $? -ne 0 ] ;then
+    if ! "$@";then
         printf "%s\n" "$@" >> ~/river_log
         exec ~/.config/river/res/safe_init
     fi