From 3bdc167c24fb481f200048f6b6aeeeb1f9d2e00c Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 31 Jul 2018 14:20:51 -0500 Subject: [PATCH] xrdbupdate: Adjust logging --- xrdbupdate | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/xrdbupdate b/xrdbupdate index a7f1623..048e45c 100755 --- a/xrdbupdate +++ b/xrdbupdate @@ -1,9 +1,14 @@ #!/bin/sh +printf "[INFO] Loading X resource files\n" if [ -r ~/.Xresources ]; then xrdb ~/.Xresources - printf "Loading .Xresources...\n" + printf " [INFO] Loading .Xresources\n" fi for file in ~/.xrdb/*.xresources; do - printf "Merging in $file...\n" - xrdb -merge "$file" + if ! [ -r "$file" ]; then + printf " [ERROR] Could not read .xresources file $file\n" 1>&2 + else + printf " [INFO] Merging in $file\n" + xrdb -merge "$file" + fi done