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 #!/bin/sh
printf "[INFO] Loading X resource files\n"
if [ -r ~/.Xresources ]; then if [ -r ~/.Xresources ]; then
xrdb ~/.Xresources xrdb ~/.Xresources
printf "Loading .Xresources...\n" printf " [INFO] Loading .Xresources\n"
fi fi
for file in ~/.xrdb/*.xresources; do for file in ~/.xrdb/*.xresources; do
printf "Merging in $file...\n" if ! [ -r "$file" ]; then
xrdb -merge "$file" printf " [ERROR] Could not read .xresources file $file\n" 1>&2
else
printf " [INFO] Merging in $file\n"
xrdb -merge "$file"
fi
done done