xrdbupdate: Adjust logging

This commit is contained in:
Salt 2018-07-31 14:20:51 -05:00
parent 2cfc81d11f
commit 3bdc167c24

View File

@ -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"
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